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); }