Enables basic storage and retrieval of dates and times.
This is a convenience addition to the Date prototype Returns a formatted version of the date. The mask defaults to dateFormat.masks.default.
string
Gets the day-of-the-month, using local time.
number
Gets the day of the week, using local time.
number
Gets the year, using local time.
number
Gets the hours in a date, using local time.
number
Gets the milliseconds of a Date, using local time.
number
Gets the minutes of a Date object, using local time.
number
Gets the month, using local time.
number
Gets the seconds of a Date object, using local time.
number
Gets the time value in milliseconds.
number
Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC).
number
Gets the day-of-the-month, using Universal Coordinated Time (UTC).
number
Gets the day of the week using Universal Coordinated Time (UTC).
number
Gets the year using Universal Coordinated Time (UTC).
number
Gets the hours value in a Date object using Universal Coordinated Time (UTC).
number
Gets the milliseconds of a Date object using Universal Coordinated Time (UTC).
number
Gets the minutes of a Date object using Universal Coordinated Time (UTC).
number
Gets the month of a Date object using Universal Coordinated Time (UTC).
number
Gets the seconds of a Date object using Universal Coordinated Time (UTC).
number
Sets the numeric day-of-the-month value of the Date object using local time.
A numeric value equal to the day of the month.
Sets the year of the Date object using local time.
A numeric value for the year.
A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
A numeric value equal for the day of the month.
Sets the hour value in the Date object using local time.
A numeric value equal to the hours value.
A numeric value equal to the minutes value.
A numeric value equal to the seconds value.
A numeric value equal to the milliseconds value.
Sets the milliseconds value in the Date object using local time.
A numeric value equal to the millisecond value.
Sets the minutes value in the Date object using local time.
A numeric value equal to the minutes value.
A numeric value equal to the seconds value.
A numeric value equal to the milliseconds value.
Sets the month value in the Date object using local time.
A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
Sets the seconds value in the Date object using local time.
A numeric value equal to the seconds value.
A numeric value equal to the milliseconds value.
Sets the date and time value in the Date object.
A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the day of the month.
Sets the year value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the year.
A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
A numeric value equal to the day of the month.
Sets the hours value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the hours value.
A numeric value equal to the minutes value.
A numeric value equal to the seconds value.
A numeric value equal to the milliseconds value.
Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the millisecond value.
Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the minutes value.
A numeric value equal to the seconds value.
A numeric value equal to the milliseconds value.
Sets the month value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the seconds value.
A numeric value equal to the milliseconds value.
Returns a date as a string value.
string
Returns a date as a string value in ISO format.
string
Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization.
string
Returns a date as a string value appropriate to the host environment's current locale.
string
Returns a value as a string value appropriate to the host environment's current locale.
string
Returns a time as a string value appropriate to the host environment's current locale.
string
Returns a string representation of a date. The format of the string depends on the locale.
string
Returns a time as a string value.
string
Returns a date converted to a string using Universal Coordinated Time (UTC).
string
Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC.
number
Accepts a date, a mask, or a date and a mask. Returns a formatted version of the given date. The date defaults to the current date/time. The mask defaults to dateFormat.masks.default.
string