firstPreviousMonth method

Date firstPreviousMonth()

Implementation

Date firstPreviousMonth() {
  var time = toDateTime();
  var currentMonth = time.month;
  while (currentMonth == time.month) {
    time = time.subtract(Duration(days: 1));
  }
  return Date.fromDateTime(time);
}