javascript - Parse.com Save object as Date type -


i trying save object date data type, saves string. read parse.com needs format in iso8601 , make sure got correct used moment.js library ensure be. here current code:

for (var = 0; < data[i].body.und.length; i++) {             article = new articles(),             content = data[i];             article.set("body", content.body.und[0].value);             article.set("vid", content.vid);             article.set("title", content.title);             var epochtime = content.created;             var dateobject = moment.unix(content.created).format();             article.set("datecreated", dateobject);              articles.push(article);           } 


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

SQL Server - MyCTE query based on 24 hour period (next day) -