DateUtils class

Utility class for handling common date and time operations.

This class provides methods to safely parse, format, and manipulate date and time values, ensuring compatibility with various input types.

Constructors

DateUtils()

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

dateTimeFromDynamic(dynamic value) DateTime
Converts a dynamic value into a DateTime instance.
dateTimeToString(DateTime dateTime) String
Converts a DateTime object into a standardized string format.
normalizeIsoOrEmpty(Object? value) String
Normalize a date-like value into a valid UTC ISO-8601 string or return empty.