startOfDay property
DateTime
get
startOfDay
Get the start of the day (00:00:00)
Example:
final date = DateTime(2023, 12, 25, 15, 30, 45);
print(date.startOfDay); // 2023-12-25 00:00:00.000
Implementation
DateTime get startOfDay => DateTime(year, month, day);