toDateTime method

  1. @override
DateTime toDateTime()
override

Converts Gregorian date to DateTime object

Implementation

@override
DateTime toDateTime() {
  return DateTime(year, month, day, hour, minute, second);
}