localizedDate function

String localizedDate(
  1. DateTime date, [
  2. String? locale,
  3. String? pattern
])

Formats a localized date for the active locale on BloomI18n.instance.

final str = localizedDate(DateTime.now());

See also:

  • formatDate, standalone date formatting function.

Implementation

String localizedDate(DateTime date, [String? locale, String? pattern]) =>
    formatDate(date, locale: locale, pattern: pattern);