get last date of month c# code example Example: c# get last day of month DateTime.DaysInMonth(1980, 08);