toisostring to date code example
Example 1: get iso date javascript
var isoDate = new Date().toISOString()
Example 2: iso to date javascript
date = new Date('2013-03-10T02:00:00Z');
date.getFullYear()+'-' + (date.getMonth()+1) + '-'+date.getDate();//prints expected format.