April 9, 2010 at 7:10 am
Hi ,
Can Any one tell me how to get start date of the month.
April 9, 2010 at 7:19 am
I recommend that you use the Search feature on this site before you post in the future. 😀
SELECT DATEADD(mm, DATEDIFF(mm,0,GETDATE()), 0)
Can be found from yesterday's article here --> http://www.sqlservercentral.com/articles/Date+Manipulation/69694/ 😉
______________________________________________________________________
Personal Motto: Why push the envelope when you can just open it?
If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.
Jason L. SelburgApril 9, 2010 at 7:20 am
All months start on the first;-)
Do you mean the day of the start of the month?
April 9, 2010 at 7:43 am
Jason Selburg (4/9/2010)
I recommend that you use the Search feature on this site before you post in the future. 😀
SELECT DATEADD(mm, DATEDIFF(mm,0,GETDATE()), 0)
Can be found from yesterday's article here --> http://www.sqlservercentral.com/articles/Date+Manipulation/69694/ 😉
Also add this link to your toolbox
https://www.sqlservercentral.com/blogs/lynnpettis/archive/2009/03/25/some-common-date-routines.aspx
April 9, 2010 at 8:20 am
I recommend that you use the Search feature on this site before you post in the future.
http://www.sqlservercentral.com/articles/Date+Manipulation/69694/
I did search the site and found this article but got confusion with the name ,i didn't know it is going give me exact results i want .sorry for that.
Thank you for all the articles .
April 9, 2010 at 8:23 am
itskumar2004 (4/9/2010)
I recommend that you use the Search feature on this site before you post in the future.
http://www.sqlservercentral.com/articles/Date+Manipulation/69694/
I did search the site and found this article but got confusion with the name ,i didn't know it is going give me exact results i want .sorry for that.
Thank you for all the articles .
No apologies necessary! I was just giving my suggestion... 😀
______________________________________________________________________
Personal Motto: Why push the envelope when you can just open it?
If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.
Jason L. SelburgViewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply