isSameDayMonth method

bool isSameDayMonth(
  1. DateTime other
)

Checks if the current DateTime has the same day and month as another DateTime.

Args: other (DateTime): The other DateTime to compare with.

Returns: bool: True if the day and month are the same, false otherwise.

Implementation

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