public abstract int GetDayOfYear(DateTime time);
public static bool IsSameDay(DateTime? date, DateTime? compareDate) { if (date is null || compareDate is null) return false; return IsSameYear(date, compareDate) && _calendar.GetDayOfYear(date.Value) == _calendar.GetDayOfYear(compareDate.Value); }