DateTimeUtils class
Constructors
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
-
dayWishes(
) → String -
formatCompleteDateTime(
DateTime dateTime, {String format = 'yyyy-MM-dd hh:mm a'}) → String -
formatDate(
DateTime dateTime, {String format = 'yyyy-MM-dd'}) → String -
formatTime(
DateTime dateTime, {String format = 'hh:mm a'}) → String -
parseCompleteDateTime(
String completeDateTimeString, {String format = 'yyyy-MM-dd hh:mm a'}) → DateTime? -
parseDate(
String dateString, {String format = 'yyyy-MM-dd'}) → DateTime? -
parseTime(
String timeString, {String format = 'hh:mm a'}) → DateTime? -
timeAgo(
DateTime dateTime) → String