endOfDay method

DateTime endOfDay()

DateTime with end time of the day

For example:

  • 1999-02-26T12:34:56.789987Z -> 1999-02-26T23:59:59.999999Z

Implementation

DateTime endOfDay() => DateTime(year, month, day, 23, 59, 59, 999, 999);