DateTimeExts extension

on

Properties

beginning DateTime
Beginning of the day.
no setter
beginningOfNextMonth DateTime
no setter
beginningOfThisMonth DateTime
no setter
end DateTime
End of the day.
no setter
endOfDay DateTime
no setter
endOfWeek DateTime
Returns the Sunday of this week.
no setter
extraDaysEnd int
Returns the number of extra days at the end of a calendar table when the end of currently visible month is something other than Sunday.
no setter
extraDaysStart int
Returns the number of extra days at the beginning of a calendar table when the start of this month is something other than Monday.
no setter
firstDateInThisMonth DateTime
Returns DateTime of the first day in the month this DateTime is in, without hour, minute, second, etc. info.
no setter
lastDateInThisMonth DateTime
Returns DateTime of the last day in the month this DateTime is in, without hour, minute, second, etc. info.
no setter
lastMomentInThisMonth DateTime
Returns DateTime of the last moment in the month this DateTime is in.
no setter
nextDay DateTime
no setter
nextMonday DateTime
no setter
nextYear DateTime
no setter
numberOfDaysThisMonth int
no setter
previousDay DateTime
no setter
previousMonday DateTime
no setter
startOfDay DateTime
Returns this DateTime without hour, minute, second, etc. information.
no setter
startOfWeek DateTime
Returns the Monday of this week.
no setter

Methods

copyWith({int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, int? microsecond}) DateTime
format(DateFormat formatter) String
isBeforeNow() bool
isBeforeToday() bool
isFriday() bool
isFuture() bool
isMonday() bool
isOnOrAfter(DateTime other) bool
isOnOrBefore(DateTime other) bool
isPast() bool
isSameDay(DateTime other) bool
isSameMonth(DateTime other) bool
isSameWeek(DateTime other) bool
isSaturday() bool
isSunday() bool
isThisYear() bool
isThursday() bool
isToday() bool
isTomorrow() bool
isTuesday() bool
isWednesday() bool
isWeekend() bool
isYesterday() bool