Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Date.prototype.toISOString() Method in Date Class of Javascript Syntax with Examples
2126 Views
Usage 
The toISOString() method is used to return string in ISO format Example: YYYY-MM-DDTHH:mm:ss.sssZ.Z is denoted as UTC timezone.
Syntax 
dateObject.toISOString()
Example
var date = new Date(2014, 7, 15, 14, 39, 7);

document.write(date.toString());   
document.write(date.toISOString());
Output 
Fri Aug 15 2014 14:39:07 GMT+0530 (India Standard Time)
2014-08-15T09:09:07.000Z
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details