DateFormatters class

Date and time formatting utilities

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

isoDate(DateTime date) String
Formats date as 'yyyy-MM-dd'
isoDateTime(DateTime date) String
Formats date and time as 'yyyy-MM-dd HH:mm:ss'
readable(DateTime date) String
Formats date in a readable format
relative(DateTime date) String
Formats relative time (e.g., "2 hours ago")
shortReadable(DateTime date) String
Formats date in a short readable format
time(DateTime date) String
Formats time as 'HH:mm'