startOfDay property

DateTime get startOfDay

A new DateTime at the start of this day (00:00:00.000) in the same timezone.

DateTime(2025, 6, 15, 14, 30).startOfDay;
// DateTime(2025, 6, 15, 0, 0, 0, 0)

Implementation

DateTime get startOfDay => DateTime(year, month, day);