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
dateStringfrom the input format to the output format specified bytwoWordFormat(e.g.iso→display). -
formatDate(
DateTime date, String outputKey) → String -
Formats
dateusing the format keyoutputKey. -
isValid(
String dateString, String inputKey) → bool -
Returns
trueifdateStringcan be parsed withinputKey. -
parseToDateTime(
String dateString, String inputKey) → DateTime -
Parses
dateStringusing the format keyinputKey.