firstDayOfMonth property
DateTime
get
firstDayOfMonth
Returns the first day of the month for the current DateTime instance.
Example usage:
final date = DateTime(2020, 1, 15);
final firstDay = date.firstDayOfMonth;
print(firstDay); // 2020-01-01 00:00:00.000
Implementation
DateTime get firstDayOfMonth => DateTime(year, month);