namespace ACBuildService; public static class DateTimeExtensions { public static bool IsSameDay(this DateTime date1, DateTime date2) { return date1.Date == date2.Date; } public static bool IsToday(this DateTime date) { return date.Date == DateTime.Today; } public static bool IsYesterday(this DateTime date) { return date.Date == DateTime.Today.AddDays(-1); } public static bool IsTomorrow(this DateTime date) { return date.Date == DateTime.Today.AddDays(1); } }