date_format library Null safety

Classes

ArabicDateLocale
DateLocale
EnglishDateLocale
FrenchDateLocale
GermanDateLocale
ItalianDateLocale
KhmerDateLocale
KoreanDateLocale
PortugueseDateLocale
RussianDateLocale
SimplifiedChineseDateLocale
SpanishDateLocale
TurkishDateLocale
VietnameseDateLocale

Constants

am → const String
Outputs if hour is AM or PM
'am'
d → const String
Outputs day compactly
'd'
D → const String
Outputs week day as long name
'D'
dd → const String
Outputs day as two digits
'dd'
DD → const String
Outputs week day as long name
'DD'
escape → const String
Escape delimiters to be used as normal string.
'\\'
h → const String
Outputs hour (0 - 11) compactly
'h'
H → const String
Outputs hour (0 to 23) compactly
'H'
hh → const String
Outputs hour (0 - 11) as two digits
'hh'
HH → const String
Outputs hour (0 to 23) as two digits
'HH'
m → const String
Outputs month compactly
'm'
M → const String
Outputs month as short name
'M'
mm → const String
Outputs month as two digits
'mm'
MM → const String
Outputs month as long name
'MM'
n → const String
Outputs minute compactly
'n'
nn → const String
Outputs minute as two digits
'nn'
s → const String
Outputs second compactly
's'
S → const String
Outputs millisecond compactly
'S'
ss → const String
Outputs second as two digits
'ss'
SSS → const String
Outputs millisecond as three digits
'SSS'
u → const String
Outputs millisecond compactly
'u'
uuu → const String
Outputs microsecond as three digits
'uuu'
w → const String
Outputs week in month
'w'
W → const String
Outputs week in year compactly
'W'
WW → const String
Outputs week in year as two digits
'WW'
yy → const String
Outputs year as two digits
'yy'
yyyy → const String
Outputs year as four digits
'yyyy'
z → const String
Outputs timezone as time offset
'z'
Z → const String
'Z'

Functions

dayInYear(DateTime date) int
formatDate(DateTime date, List<String> formats, {DateLocale locale = const EnglishDateLocale()}) String