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 -

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

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -