I need to find the last day of a month in the following format:
\"2013-05-31 00:00:00:000\"
Anybody please help out.
Select DATEADD(DAY, -(DAY(DATEADD(MONTH, 1, GETDATE()))),DATEADD(MONTH, 1, GETDATE()))
This works great in T-sql ..
Replace the GETDATE() of the query with your column name .
GETDATE()