I am trying to get the date using html5 date
type,and it is used for an api call with some parameters,but i will get the following error message from api.
date field must be yyyy-mm-ddTH:i:s+Z
I wll read the date as this format
Sun Jun 12 2016 00:00:00 GMT+0530 (India Standard Time)
So how can i convert the above date into yyyy-mm-ddTH:i:s+Z
format?
Note: I am using javascript
UPDATE
I am used toISOString()
method but it didn't worked