endOfDay static method

DateTime endOfDay(
  1. DateTime date
)

Returns the end of the day for date.

Implementation

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