DateCodec class

Encodes and decodes dates according to MIME requirements.

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

decodeDate(String? dateText) DateTime?
Decodes the given MIME dateText to the local DateTime
encodeDate(DateTime dateTime) String
Encodes the given dateTime to a valid MIME date representation
encodeSearchDate(DateTime dateTime) String
Encodes only day-month-year of the given dateTime, e.g. "1-MAR-2021"