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