[Property] (String)
[Property] (String)
[Property] (String)
[Property] (String)
[Property] (String)
[Property] (String)
[Property] (String)
[Property] (Array)
[Property] (String)
[Property] (Object)
[Property] (Object)
[Property] (Object)
[Property] (Array)
[Property] (Object)
[Property] (Object)
[Property] (Boolean)
[Method] Provides a convenient method for performing basic date arithmetic
Date The date to modify.
String A valid date interval enum value.
Number The amount to add to the current date.
any
Date The new Date instance.
[Method] Align the date to unit
Date The date to be aligned.
String The unit. This unit is compatible with the date interval constants.
any
Date The aligned date.
[Method] Checks if a date falls on or between the given start and end dates
Date The date to check.
Date Start date.
Date End date.
boolean
Boolean true if this date falls on or between the given start and end dates.
[Method] Attempts to clear all time information from this Date by setting the time to midnight of the same day automatically
Date The date.
Boolean true to create a clone of this date, clear the time and return it.
any
Date this or the clone.
[Method] Creates and returns a new Date instance with the exact same date value as the called instance
Date The date.
any
Date The new Date instance.
[Method] Calculate how many units are there between two time
Date The first time.
Date The second time.
String The unit. This unit is compatible with the date interval constants.
number
Number The maximum number n of units that min + n * unit <= max.
[Method] Formats a date given the supplied format string
Date The date to format.
String The format string.
string
String The formatted date.
[Method] Get the numeric day number of the year adjusted for leap year
Date The date.
number
Number 0 to 364 (365 in leap years).
[Method] Get the number of days in the current month adjusted for leap year
Date The date.
number
Number The number of days in the month.
[Method] Returns the number of milliseconds between two dates
Date The first date.
Date The second date, defaults to now.
number
Number The difference in milliseconds.
[Method] Get the date of the first day of the month in which this date resides
Date The date.
any
Date
[Method] Get the first day of the current month adjusted for leap year
Date The date
number
Number The day number (0-6).
[Method] Get the offset from GMT of the current date equivalent to the format specifier O
Date The date.
Boolean true to separate the hours and minutes with a colon.
string
String The 4-character offset string prefixed with + or - (e.g. '-0600').
[Method] Get the date of the last day of the month in which this date resides
Date The date.
any
Date
[Method] Get the last day of the current month adjusted for leap year
Date The date.
number
Number The day number (0-6).
[Method] Get the zero based JavaScript month number for the given short full month name
String The short/full month name.
number
Number The zero-based JavaScript month number.
[Method] Get the short day name for the given day number
Number A zero-based JavaScript day number.
string
String The short day name.
[Method] Get the short month name for the given month number
Number A zero-based JavaScript month number.
string
String The short month name.
[Method] Get the English ordinal suffix of the current day equivalent to the format specifier S
Date The date.
string
String 'st', 'nd', 'rd' or 'th'.
[Method] Get the timezone abbreviation of the current date equivalent to the format specifier T
Date The date.
string
String The abbreviated timezone name (e.g. 'CST', 'PDT', 'EDT', 'MPST' ...).
[Method] Get the numeric ISO 8601 week number of the year equivalent to the format specifier W but without a leading zero
Date The date.
number
Number 1 to 53.
[Method] Checks if the current date is affected by Daylight Saving Time DST
Date The date.
boolean
Boolean true if the current date is affected by DST.
[Method] Checks if the current date falls within a leap year
Date The date.
boolean
Boolean true if the current date falls within a leap year, false otherwise.
[Method] Checks if the passed Date parameters will cause a JavaScript Date rollover
Number 4-digit year.
Number 1-based month-of-year.
Number Day of month.
Number Hour.
Number Minute.
Number Second.
Number Millisecond.
boolean
Boolean true if the passed parameters do not cause a Date "rollover", false otherwise.
[Method] Returns the current timestamp
number
Number The current timestamp.
[Method] Parses the passed string using the specified date format
String/Number The raw date string.
String The expected date string format.
Boolean true to validate date strings while parsing (i.e. prevents JavaScript Date "rollover"). Invalid date strings will return null when parsed.
any
Date/null The parsed Date, or null if an invalid date string.