tryDateFormatUtc method
Formats the DateTime object in UTC using the provided pattern and optional locale.
Implementation
String? tryDateFormatUtc(String pattern, [String? locale]) =>
isNull ? null : DateFormat(pattern, locale).format(this!.toUtc());