firstDateInThisMonth property

DateTime get firstDateInThisMonth

Returns DateTime of the first day in the month this DateTime is in, without hour, minute, second, etc. info.

Implementation

DateTime get firstDateInThisMonth => DateTime(year, month, 1);