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 new DateTime(month.year, month.month);
}