private DateTime LastDayOfMonth(DateTime dt) { dt = dt.AddMonths(1); dt = dt.AddDays(-dt.Day); return JustDay(dt); }