I am using SQL Server 2005.
In one of my stored procedure, I have a parameter called @pstatDate of type DateTime.
I have to simple update the datePart of the Parameter to Lastday of that month.
For example if the date is Apr 23 2012 2:15PM I need it update it to Apr 30 2012 2:15PM
How can I achieve this.
Maybe something like this:
You could also do it like this:
Like @Aaron Bertrand said:
So according to that then something like this: