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
dateStringusing a two-word format (e.g.iso→display). -
format(
DateTime date, String outputKey) → String -
Formats
dateusing the format keyoutputKey. -
isValid(
String dateString, String inputKey) → bool -
Returns
trueifdateStringis valid forinputKey. -
parse(
String dateString, String inputKey) → DateTime -
Parses
dateStringusing the format keyinputKey. -
register(
String name, String pattern) → void -
Registers a custom format
namewith the givenpattern.