fullDateDisplay method

String fullDateDisplay({
  1. String? locale,
})

Locale-ordered full month name, day, year: January 15, 1945 (en_US), 15 janvier 1945 (fr_FR), 1945年1月15日 (ja_JP).

Uses the yMMMMd skeleton so component order follows the language — a literal 'd MMMM yyyy' pattern would lock English order. Returns '' (never throws) on an unloaded locale. Audited: 2026-06-12 11:26 EDT

Implementation

String fullDateDisplay({String? locale}) {
  try {
    return DateFormat.yMMMMd(locale).format(this);
    // Unloaded/malformed locale must degrade to empty, never crash a UI.
    // ignore: require_catch_logging -- display contract: never throw, callers get ''
  } on Object {
    return '';
  }
}