toDateTime method

DateTime toDateTime()

Implementation

DateTime toDateTime() {
  return DateTime.utc(year ?? 0, month ?? 0, day ?? 0);
}