DateFormat class

Date format class for formatting dates

Constructors

DateFormat()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

d([DateTime? datetime]) String
format([DateTime? dateTime, String pattern = 'yyyy-MM-dd']) String
Format a DateTime using the pattern
H([DateTime? datetime]) String
HHmmss([DateTime? datetime]) String
Hm([DateTime? datetime]) String
hm([DateTime? datetime]) String
Hms([DateTime? datetime]) String
hms([DateTime? datetime]) String
M([DateTime? datetime]) String
m([DateTime? datetime]) String
ms([DateTime? datetime]) String
s([DateTime? datetime]) String
y([DateTime? datetime]) String
yMd([DateTime? datetime]) String
yMMMd([DateTime? datetime]) String
yMMMEd([DateTime? datetime]) String
yMMMMEEEEd([DateTime? datetime]) String