Results 41 - 54 of 54

Date.prototype.toLocaleFormat()

The non-standard toLocaleFormat() method converts a date to a string using the specified formatting. Intl.DateTimeFormat is an alternative to format dates in a standards-compliant way. See also the newer version of Date.prototype.toLocaleDateString().
Date JavaScript Method Prototype Reference

Date.prototype.toSource()

The toSource() method returns a string representing the source code of the object.
Date JavaScript Method Prototype Reference

Date.prototype.toString()

The toString() method returns a string representing the specified Date object.
Date JavaScript Method Prototype Reference

Date.prototype.toTimeString()

The toTimeString() method returns the time portion of a Date object in human readable form in American English.
Date JavaScript Method Prototype Reference

Date.prototype.toUTCString()

The toUTCString() method converts a date to a string, using the UTC time zone.
Date JavaScript Method Prototype Reference

Date.prototype.valueOf()

The valueOf() method returns the primitive value of a Date object.
Date JavaScript Method Prototype Reference

Date.prototype.getTime()

The getTime() method returns the numeric value corresponding to the time for the specified date according to universal time.
Date JavaScript Method Prototype Reference Référence

Date.prototype.getYear()

The getYear() method returns the year in the specified date according to local time. Because getYear() does not return full years ("year 2000 problem"), it is no longer used and has been replaced by the getFullYear() method.
Date Deprecated JavaScript Method Prototype Reference

Date.prototype.setYear()

The setYear() method sets the year for a specified date according to local time. Because setYear() does not set full years ("year 2000 problem"), it is no longer used and has been replaced by the setFullYear() method.
Date Deprecated JavaScript Method Prototype Reference

Date.prototype.toGMTString()

The toGMTString() method converts a date to a string, using Internet Greenwich Mean Time (GMT) conventions. The exact format of the value returned by toGMTString() varies according to the platform and browser, in general it should represent a human readable date string.
Date Deprecated JavaScript Method Prototype Reference

Date.prototype.toISOString()

The toISOString() method returns a string in simplified extended ISO format (ISO 8601), which is always 24 or 27 characters long (YYYY-MM-DDTHH:mm:ss.sssZ or ±YYYYYY-MM-DDTHH:mm:ss.sssZ, respectively). The timezone is always zero UTC offset, as denoted by the suffix "Z".
Date JavaScript Method polyfill Prototype Reference

Date.prototype.toLocaleDateString()

The toLocaleDateString() method returns a string with a language sensitive representation of the date portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
Date Internationalization JavaScript Method Prototype Reference

Date.prototype.toLocaleString()

The toLocaleString() method returns a string with a language sensitive representation of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
Date Internationalization JavaScript Method Prototype Reference

Date.prototype.toLocaleTimeString()

The toLocaleTimeString() method returns a string with a language sensitive representation of the time portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent.
Date Internationalization JavaScript Method Prototype Reference