endOfDay function

DateTime endOfDay(
  1. DateTime date
)

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

Implementation

DateTime endOfDay(DateTime date) {
  return DateTime(date.year, date.month, date.day, 23, 59, 59, 999);
}