# toDateTime method

DateTime toDateTime()

Converts to a standard Dart DateTime object.

The returned DateTime represents the same instant in UTC.

Example:

    final zoned = ZonedDateTime.parse('2023-12-25T15:00:00-05:00');
    final dateTime = zoned.toDateTime();

    print('Zoned: $zoned');
    print('DateTime: $dateTime'); // UTC equivalent

## Implementation

    DateTime toDateTime() {
      final utcDateTime = _localDateTime.minus(_offset);
      return utcDateTime.toDateTime();
    }