toDate method

DateTime toDate()

Implementation

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