Optional
kind: DateTimeKindOptional
kind: DateTimeKindOptional
kind: DateTimeKindOptional
kind: DateTimeKindReturns a DateTime object for 00:00 of this date.
Returns the day of the month. An integer between 1 and 31.
Returns the day of the month indexed starting at zero.
Returns the zero indexed day of the week. (Sunday == 0)
Returns the Gregorian Month (zero indexed).
Returns the time of day represented by a ClockTime object.
Static
nowReturns the now local time.
Static
todayThe date component for now.
Static
tomorrowMidnight tomorrow.
Receives an TimeQuantity value and adds based on the total milliseconds.
Compares a JS Date with the current instance. Does not evaluate the kind.
Compares another JsDateConvertible object and returns true if they or their value are equal.
The other JsDateConvertible object.
Optional
strict: booleanWhen strict is true, the 'kind' also must match.
Returns true if the value is the same UTC time.
Receives an TimeQuantity value and subtracts based on the total milliseconds.
Returns a readonly object which contains all the date and time components.
Returns a UTC version of this date if its kind is local.
Static
betweenStatic
daysReturns the number of days for the specific year and month.
Static
fromStatic
fromStatic
isCalculates if the given year is a leap year using the formula: ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)
Returns the month number (1-12).