startOfYear property

DateTime startOfYear

Get a DateTime representing start of year of this DateTime in local time.

Implementation

DateTime get startOfYear =>
    clone.setMonth(DateTime.january, 1, 0, 0, 0, 0, 0);