DateTimeUtil class

Utility functions for DateTime

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

findFirstDateOfNextWeek(DateTime dateTime) DateTime
Find first date of next week using a date in current week. dateTime A date in current week.
findFirstDateOfPreviousMonth(DateTime dateTime) DateTime
findFirstDateOfPreviousWeek(DateTime dateTime) DateTime
Find first date of previous week using a date in current week. dateTime A date in current week.
findFirstDateOfTheMonth(DateTime dateTime) DateTime
findFirstDateOfTheWeek(DateTime dateTime) DateTime
Find the first date of the week which contains the provided date.
findLastDateOfNextWeek(DateTime dateTime) DateTime
Find last date of next week using a date in current week. dateTime A date in current week.
findLastDateOfPreviousMonth(DateTime dateTime) DateTime
findLastDateOfPreviousWeek(DateTime dateTime) DateTime
Find last date of previous week using a date in current week. dateTime A date in current week.
findLastDateOfTheMonth(DateTime dateTime) DateTime
findLastDateOfTheWeek(DateTime dateTime) DateTime
Find last date of the week which contains provided date.
getFormattedDateString(DateTime date, {String pattern = 'dd-MM-yyyy'}) String
Convert date to String according to pattern.
getLastMonth(DateTime dateTime) DateTime