isSameDateOnly method
Checks if the current DateTime has the same date (year, month, day) as another DateTime.
Args: other (DateTime): The other DateTime to compare with.
Returns: bool: True if the dates are the same, false otherwise.
Implementation
bool isSameDateOnly(DateTime other) =>
year == other.year && month == other.month && day == other.day;