DateTime.DaysInMonth(int year,int month)
DateTime origDT = Convert.ToDateTime("02/10/2011"); DateTime lastDate = new DateTime(origDT.Year, origDT.Month, 1).AddMonths(1).AddDays(-1);
DateTime last_Date = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddMonths(1).AddDays(-1);
Now
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)