isSameMonth function
Compare two NepaliDateTime objects to see if they are in the same month.
dateA is the first NepaliDateTime object to compare.
dateB is the second NepaliDateTime object to compare.
Returns true if the two dates are in the same month, false otherwise.
Implementation
bool isSameMonth(NepaliDateTime? dateA, NepaliDateTime? dateB) {
return dateA?.year == dateB?.year && dateA?.month == dateB?.month;
}