The method something named 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”.
refer the source if you want here
You have to created with the .toISOString() method. For older browsers (ie8 and under), which don’t natively support this method, the shim can be found here:
var isoDate = new Date('yourdatehere').toISOString();
click here for time zone works.