monthsBetween static method

int monthsBetween(
  1. String firstRulesDate,
  2. String secondRulesDate
)

Implementation

static int monthsBetween(String firstRulesDate, String secondRulesDate) {
  return (difference(firstRulesDate, secondRulesDate).inDays / 30).round();
}