isSameYearMonth method

bool isSameYearMonth(
  1. DateTime target
)

Implementation

bool isSameYearMonth(DateTime target) {
  return (target.year == year) && (target.month == month);
}