DateFormats enum
dateTime => 03/11/2023 - 11:00 AM
date => 03/11/2023
dateApi => 2023-11-03
dateSlash => 03/11/2023
date168 => 03 Nov 2023
dateMD => Nov 03
time => 11:00 AM
mMyyyy => Nov, 2023
mMMMyyyy => November, 2023
numMonth => 3 Nov
numDay => Fri
fullDate => 3 November 2023
shortDate => 3 Nov 2023
longDate => Friday, 3 November 2023
isoDate => 2023-11-03T11:00:00
hourMinute => 11:00
monthYear => 11/2023
custom => 03-11-2023 11:00 AM
quarter => Q4 2023
weekDay => 3 Friday 2023
shortTime => 11:00 AM
fullTime => 11:00:00 AM
dayMonth => 3 Nov
weekNumber => 45 year => 2023
yearMonth => 2023-11
romanDate => III (for November)
dayOfYear => 307 (Day of year)
weekStart => Monday, 1 January 2023
timeZone => 11:00 AM GMT+3
french => 3 november 2023
german => 3. November 2023
longIsoDate=> 2023-11-03T11:00:00.000
dayAndShortMonth => Sun, 28 Jan
- Inheritance
- Available extensions
Values
- dateTime → const DateFormats
-
dateTime => 03/11/2023 - 11:00 AM
Full date and time format with AM/PM.
- date → const DateFormats
-
date => 03/11/2023
Standard date format (DD/MM/YYYY).
- dateApi → const DateFormats
-
dateApi => 2023-11-03
Date format suitable for API, usually ISO 8601 (YYYY-MM-DD).
- dateSlash → const DateFormats
-
dateSlash => 03/11/2023
Similar to
date
, but specifically using slashes (DD/MM/YYYY). - date168 → const DateFormats
-
date168 => 03 Nov 2023
Short date format with month as abbreviation (DD MMM YYYY).
- dateMD → const DateFormats
-
dateMD => Nov 03
Month abbreviation and day (MMM DD).
- time → const DateFormats
-
time => 11:00 AM
Time format with AM/PM (hh:mm a).
- mMyyyy → const DateFormats
-
mMyyyy => Nov, 2023
Month abbreviation and year (MMM, YYYY).
- mMMMyyyy → const DateFormats
-
mMMMyyyy => November, 2023
Full month name and year (MMMM, YYYY).
- numMonth → const DateFormats
-
numMonth => 3 Nov
Numeric day and abbreviated month (D MMM).
- numDay → const DateFormats
-
numDay => Fri
Day of the week abbreviation (e.g., "Mon", "Tue").
- fullDate → const DateFormats
-
fullDate => 3 November 2023
Full date format with day, full month name, and year (D MMMM YYYY).
- shortDate → const DateFormats
-
shortDate => 3 Nov 2023
Short date format (D MMM YYYY).
- longDate → const DateFormats
-
longDate => Friday, 3 November 2023
Long date format with weekday, day, full month name, and year (Weekday, D MMMM YYYY).
- isoDate → const DateFormats
-
isoDate => 2023-11-03T11:00:00
ISO 8601 date and time format with "T" separator (YYYY-MM-DDTHH:mm:ss).
- hourMinute → const DateFormats
-
hourMinute => 11:00
Hour and minute only (HH:mm).
- monthYear → const DateFormats
-
monthYear => 11/2023
Month and year (MM/YYYY).
- weekdayMonthDay → const DateFormats
-
monthYear => 11/2023
Month and year ('EEEE, MMMM dd').
- custom → const DateFormats
-
custom => 03-11-2023 11:00 AM
Custom date and time format (DD-MM-YYYY hh:mm a).
- quarter → const DateFormats
-
quarter => Q4 2023
Quarter format with year (Q# YYYY).
- weekDay → const DateFormats
-
weekDay => 3 Friday 2023
Weekday with numeric day and year (D Weekday YYYY).
- shortTime → const DateFormats
-
shortTime => 11:00 AM
Short time format with AM/PM (hh:mm a).
- fullTime → const DateFormats
-
fullTime => 11:00:00 AM
Full time format with seconds (hh:mm:ss a).
- dayMonth → const DateFormats
-
dayMonth => 3 Nov
Day and abbreviated month (D MMM).
- weekNumber → const DateFormats
-
weekNumber => 45
Week number of the year (week number).
- year → const DateFormats
-
year => 2023
Year only (YYYY).
- yearMonth → const DateFormats
-
yearMonth => 2023-11
Year and month (YYYY-MM).
- romanDate → const DateFormats
-
romanDate => III (for November)
Roman numeral for the month (e.g., I, II, III, ...).
- dayOfYear → const DateFormats
-
dayOfYear => 307 (Day of year)
Day of the year (1 to 365/366).
- weekStart → const DateFormats
-
weekStart => Monday, 1 January 2023
First day of the week (Weekday, D MMMM YYYY).
- timeZone → const DateFormats
-
timeZone => 11:00 AM GMT+3
Time with timezone information (hh:mm a GMT+X).
- french → const DateFormats
-
french => 3 novembre 2023
French date format (D MMMM YYYY).
- german → const DateFormats
-
german => 3. November 2023
German date format (D. MMMM YYYY).
- longIsoDate → const DateFormats
-
longIsoDate=> 2023-11-03T11:00:00.000
ISO 8601 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sss).
- dayAndShortMonth → const DateFormats
-
dayAndShortMonth => Sun, 28 Jan
French date format ('EEE, dd MMM').
Properties
- format → String
-
Available on DateFormats, provided by the DateFormatsExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
DateFormats> - A constant List of the values in this enum, in order of their declaration.