toDateOnly method

DateTime toDateOnly()

Implementation

DateTime toDateOnly() {
  return DateTime(year, month, day);
}