startOfDay property
DateTime
get
startOfDay
Returns the start of the day (00:00:00.000).
Example:
DateTime(2024, 1, 15, 14, 30).startOfDay;
// DateTime(2024, 1, 15, 0, 0, 0, 0)
Implementation
DateTime get startOfDay => DateTime(year, month, day);