DateTimeExtension extension

Extension methods for DateTime objects used internally by date-related controls such as CalendarView and DatePicker.

on

Properties

daysInMonth → int

Available on DateTime, provided by the DateTimeExtension extension

Returns the number of days in this date's month.
no setter

Methods

addDays(int days) → DateTime

Available on DateTime, provided by the DateTimeExtension extension

Returns a new DateTime that is days days after this date, preserving whether the date is UTC or local.
isSameDay(DateTime? other) → bool

Available on DateTime, provided by the DateTimeExtension extension

Returns true if this date falls on the same calendar day as other.
isSameMonth(DateTime? other) → bool

Available on DateTime, provided by the DateTimeExtension extension

Returns true if this date falls in the same calendar month as other.