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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Dipal ChoksiRank #199 · 12K reputationPosted May 9, 2008, 1:30 AM EDT
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...
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Jun 24, 2008, 11:51 AM EDT
Hi,
SELECT * FROM WHERE > '01012008'
You may want to check the syntax of the query.
Thanks -- Vj
http://dotnetvj.blogspot.com
Ryan AlfordRank #1,411 · 1.2K reputationPosted Jul 11, 2008, 9:06 AM EDT