isSameMonth method
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;