startOfMonth property
DateTime
get
startOfMonth
Returns the start of the month.
Example:
DateTime(2024, 1, 15).startOfMonth;
// DateTime(2024, 1, 1, 0, 0, 0, 0)
Implementation
DateTime get startOfMonth => DateTime(year, month);