Blog for Latest Government and Private Jobs, asp.net, vb.net, sql server, java script queries
asp.net, vb.net, sql server, ssrs, expor to excel, export to pdf and javascript related queries
Pages
Home
Travel and Tours
Health Tips
Monday, August 5, 2013
how to get the last day of a month in sql
To get the
last day
of a
month
in
sql
SELECT DATEADD(MS,- 3,DATEADD(M,0,DATEADD(M,DATEDIFF(M,0,GETDATE())+1,0))) 'Last Day'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment