Return a Date object as a String, using the ISO standard:
The result of n will be:
The toISOString() method converts a Date object into a string, using the ISO standard.
The standard is called ISO-8601 and the format is: YYYY-MM-DDTHH:mm:ss.sssZ
The toISOString() method is supported in all major browsers.
Note: This method is not supported in Internet Explorer 8 and earlier.
|String||The date and time using the ISO standard format|
Your message has been sent to W3Schools.