firstDayOfMonth property

DateTime firstDayOfMonth

Returns the first day of this month

Implementation

DateTime get firstDayOfMonth => isUtc ? DateTime.utc(year, month, 1) : DateTime(year, month, 1);