combine static method

DateTime combine(
  1. DateTime dateTime,
  2. TimeOfDay timeOfDay
)

Implementation

static DateTime combine(DateTime dateTime, TimeOfDay timeOfDay) {
  return new DateTime(dateTime.year, dateTime.month, dateTime.day, timeOfDay.hour, timeOfDay.minute, 0);
}