getDateOnly method

DateTime getDateOnly (
  1. DateTime dateTimeObj
)

Implementation

DateTime getDateOnly(DateTime dateTimeObj) {
  return DateTime(dateTimeObj.year, dateTimeObj.month, dateTimeObj.day);
}