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.
dateadd(month,1+datediff(month,0,getdate()),-1)
To check run:
print dateadd(month,1+datediff(month,0,@date),-1)