startOfDay function

DateTime startOfDay(
  1. DateTime date
)

Returns the start of the day. params DateTime date The date to get the start of the day. returns DateTime The start of the day.

Implementation

DateTime startOfDay(DateTime date) {
  return DateTime(date.year, date.month, date.day);
}