startOfDay static method

DateTime startOfDay(
  1. DateTime date
)

Returns the start of the day for date.

Implementation

static DateTime startOfDay(DateTime date) =>
    DateTime(date.year, date.month, date.day);