getCountFromDiffDate static method
Implementation
static int getCountFromDiffDate(DateTime firstDate, DateTime lastDate) {
var yearsDifference = lastDate.year - firstDate.year;
return 12 * yearsDifference + lastDate.month - firstDate.month;
}
static int getCountFromDiffDate(DateTime firstDate, DateTime lastDate) {
var yearsDifference = lastDate.year - firstDate.year;
return 12 * yearsDifference + lastDate.month - firstDate.month;
}