June 04, 2011

Get Number of Days in a Month - SQL Server

SELECT DAY(DATEADD(mm,DATEDIFF(mm,-1,@AnyDateInThatMonth),-1))

No comments:

Post a Comment