firstDayOfMonth method

DateTime firstDayOfMonth (DateTime month)

Returns a new DateTime in the 1st day of the given month

Implementation

static DateTime firstDayOfMonth(DateTime month) {
  return DateTime.utc(month.year, month.month, 1, 12);
}