toDate method

DateTime toDate()

DateTime retaining just date not the time

For example:

  • 1999-02-26T12:34:56.789987Z -> 1999-02-26T00:00:00.000000Z

Currently same as startOfDay

Implementation

DateTime toDate() => DateTime(year, month, day);