DateX class

Main entry point for date conversion, formatting, and parsing.

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 using a two-word format (e.g. iso→display).
format(DateTime date, String outputKey) → String
Formats date using the format key outputKey.
isValid(String dateString, String inputKey) → bool
Returns true if dateString is valid for inputKey.
parse(String dateString, String inputKey) → DateTime
Parses dateString using the format key inputKey.
register(String name, String pattern) → void
Registers a custom format name with the given pattern.