yesterdayAsDateTime method

DateTime yesterdayAsDateTime ()

Implementation

static DateTime yesterdayAsDateTime() {
  DateTime now = DateTime.now();
  return DateTime(now.year, now.month, now.day - 1);
}