Sunday, September 30, 2007

Get last day of the month

DateTime GetLastDayOfMonth(DateTime date) 
{
return
new DateTime(date.Year,
date.Month,
DateTime.DaysInMonth(
date.Year,
date.Month));
}

No comments: