Monday, January 19, 2009

MSSQL Last of Month

select dateadd(Month,1, ( DateAdd(Month,DateDiff(Month,0,getdate()),0)) ) -1

Till Next Time

No comments: