toJson method

String toJson()

Returns a serialized version of the DateTime in UTC.

Implementation

String toJson() => toUtc().toIso8601String();