isFirstDayOfYear method
Checks if this DateTime is the first day of the year.
Implementation
bool isFirstDayOfYear() {
return month == 1 && day == 1;
}
Checks if this DateTime is the first day of the year.
bool isFirstDayOfYear() {
return month == 1 && day == 1;
}