toDateTime method

DateTime toDateTime()

Converts this instance to a standard DateTime.

Example:

DateTime dartDT = localDT.toDateTime();

Implementation

DateTime toDateTime() => DateTime.utc(year, month, day, hour, minute, second, millisecond);