isSameDayAs method

bool isSameDayAs(
  1. DateTime other
)

Checks if this DateTime occurs on the same day as another DateTime, regardless of time zone.

Implementation

bool isSameDayAs(DateTime other) =>
    day == other.day && month == other.month && year == other.year;