tryDateFormatUtc method

String? tryDateFormatUtc(
  1. String pattern, [
  2. String? locale
])

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());