public static DateTime StartOfMonth(this DateTime date) { return new DateTime(date.Year, date.Month, 1); }