iso8601 property

String iso8601

Formats the DateTime into ISO 8601 standard format 'yyyy-MM-ddTHH:mm:ss'.

Example:

print(DateTime.now().iso8601); // Output: "2023-04-07T12:00:00"

Implementation

String get iso8601 => DateFormats.iso8601.format(this);