DateFormatter class

Formats and parses dates using registered format keys.

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

convert(String dateString, String twoWordFormat) → String
Converts dateString from the input format to the output format specified by twoWordFormat (e.g. iso→display).
formatDate(DateTime date, String outputKey) → String
Formats date using the format key outputKey.
isValid(String dateString, String inputKey) → bool
Returns true if dateString can be parsed with inputKey.
parseToDateTime(String dateString, String inputKey) → DateTime
Parses dateString using the format key inputKey.