DateUtil class

Constructors

DateUtil()

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

endOfDay(DateTime? dateTime) DateTime
formatDateTime(DateTime dateTime) String
2018-07-24 00:00:00
formatDateTimeline(DateTime dateTime, bool isPath) String
2018-07-24 00_00_00 路径需要在天数和小时之间用下划线替换空格
formatEndOfDay(DateTime? dateTime) String
formatStartOfDay(DateTime? dateTime) String
fromDateString(String date) DateTime
startOfDay(DateTime? dateTime) DateTime