hello,
can any one give a suggestion ,how write procedure to get the start date of the year to tilldate of the year.
Thanks and advance,
hello,
can any one give a suggestion ,how write procedure to get the start date of the year to tilldate of the year.
Thanks and advance,
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ryan AlfordPosted Jul 11, 2008, 1:06 PM
Vijaya KadiyalaPosted Jun 24, 2008, 3:51 PM
Hi,
SELECT * FROM WHERE > '01012008'
You may want to check the syntax of the query.
Thanks -- Vj
http://dotnetvj.blogspot.com
Dipal ChoksiPosted May 9, 2008, 5:30 AM
In SQL Server -
GETDATE will get your the current date.
You can use the DATEPART function to extract the year and concatenate a '1/1/' to the year to create the first day of the year.
Not sure if that was what you were looking for...