Skip to main content
Dart & Flutter package New: calendar & durations →

Dates for every locale, in one line of Dart

Format, parse and compute dates in 55+ locales: ordinal patterns, relative and calendar times, humanized durations and DST-safe date math.

$ dart pub add flutter_date_formatter
main.dart
final date = DateTime.now();

date.format(
  pattern: 'EEEE, do MMMM yyyy',
  locale: 'en',
);
→Loading the package…
55+

Locales

Patterns, relative, calendar and duration strings, with CLDR plural rules.

DST

Calendar-safe math

Day, week and month steps keep the wall-clock time across daylight saving.

⏲

Testable clock

Inject "now" once with DateFormatterConfig; every API follows it.

0

Setup

No initializeDateFormatting call: the intl data loads on first use.