Oct 15, 2010

Calculating the numbers of days in a month.


@numberOfDaysInMonth = DAY(DATEADD (m, 1, DATEADD (d, 1 - DAY(getdate()), getdate())) - 1);

No comments: