static DateTime? startOfMonth(DateTime? dateTime) { if (dateTime == null) return null; return DateTime(dateTime.year, dateTime.month, 1); }