javascript - how to get right datetime format? -


there need convert datetime right format, "2015-06-15t15:01:12 +2:00", , need "2015-06-15t15:01:12 + 02:00". don't know how 0 in front of hour. cannot save record if don't format. tried modify in firefox network , 0 works great, tried modify code 0 behind 2 , couldn't, goes somewhere else.

 '","starttime": "' + ((!data.starttime) ? 0 : kendo.tostring(data.starttime, "yyyy-mm-dd't'h:mm:ss z:00")) + '"}'; 

i appreciate help.

solved:

 '","starttime": "' + ((!data.starttime) ? 0 : kendo.tostring(data.starttime, "yyyy-mm-dd't'h:mm:ss+02:00")) + '"}'; 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -