Converts a Date object to a string.
Converts a Date object to a string.
Converts a Date object to a number.
Converts a Date object to a string or number.
The strings "number", "string", or "default" to specify what primitive to return.
A number if 'hint' was "number", a string if 'hint' was "string" or "default".
Converts a Date object to a string.
Converts a Date object to a string.
Converts a Date object to a number.
Converts a Date object to a string or number.
The strings "number", "string", or "default" to specify what primitive to return.
A number if 'hint' was "number", a string if 'hint' was "string" or "default".
Sets the year of the Date object using local time.
A numeric value for the year.
Optional
month: numberA zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
Optional
date: numberA 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.
Optional
min: numberA numeric value equal to the minutes value.
Optional
sec: numberA numeric value equal to the seconds value.
Optional
ms: numberA numeric value equal to the milliseconds value.
Sets the minutes value in the Date object using local time.
A numeric value equal to the minutes value.
Optional
sec: numberA numeric value equal to the seconds value.
Optional
ms: numberA 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.
Optional
date: numberA 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 year value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the year.
Optional
month: numberA 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.
Optional
date: numberA 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.
Optional
min: numberA numeric value equal to the minutes value.
Optional
sec: numberA numeric value equal to the seconds value.
Optional
ms: numberA numeric value equal to the milliseconds value.
Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
A numeric value equal to the minutes value.
Optional
sec: numberA numeric value equal to the seconds value.
Optional
ms: numberA 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.
Optional
date: numberA numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
Returns a date as a string value appropriate to the host environment's current locale.
Converts a date to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Converts a date to a string by using the current or specified locale.
Optional
locales: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Returns a value as a string value appropriate to the host environment's current locale.
Converts a date and time to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Converts a date and time to a string by using the current or specified locale.
Optional
locales: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Returns a time as a string value appropriate to the host environment's current locale.
Converts a time to a string by using the current or specified locale.
Optional
locales: string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Converts a time to a string by using the current or specified locale.
Optional
locales: LocalesArgumentA locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
Optional
options: DateTimeFormatOptionsAn object that contains one or more properties that specify comparison options.
Enables basic storage and retrieval of dates and times.