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

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -