getPastMonth method

DateTime getPastMonth()

Implementation

DateTime getPastMonth() {
  var date = DateTime.now();
  var prevMonth = new DateTime(date.year, date.month - 1, date.day);
  return prevMonth;
}