setToMidnight static method

DateTime setToMidnight(
  1. DateTime date
)

Implementation

static DateTime setToMidnight(DateTime date) {
  return DateTime(date.year, date.month, date.day);
}