isSameMonth method

bool isSameMonth(
  1. DateTime other
)

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

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

Returns: bool: True if the month is the same, false otherwise.

Implementation

bool isSameMonth(DateTime other) => month == other.month;