DateEPExtension extension Null safety

on

Properties

beginningOfMonth DateTime
read-only
daysInMonth int
read-only
endOfDay DateTime
read-only
isLastDayOfMonth bool
read-only
isLeapYear bool
read-only
isToday bool
read-only
isTomorrow bool
read-only
isWeekend bool
read-only
startOfDay DateTime
read-only
sundayBefore DateTime
read-only
weekDayBaseSunday int
read-only

Methods

addDays(int days) DateTime
addMonths(int months) DateTime
Returns date as the first day of the next month
differenceInDays(DateTime date) int
isBetween(DateTime start, DateTime finish) bool
isSameDayAs(DateTime date) bool
isSameOrAfter(DateTime date) bool
isSameOrBefore(DateTime date) bool
subtractDays(int days) DateTime

Operators

operator +(Duration duration) DateTime
operator -(Duration duration) DateTime