Please try the following code:
pre
code
var d = value;
console.log(d);
var d2 = new Date(d);
console.log(d2.toDateString());
return d2.toDateString();
/code
/pre
Please try the following code:
pre
code
var d = value;
console.log(d);
var d2 = new Date(d);
console.log(d2.toDateString());
return d2.toDateString();
/code
/pre
Matt,
This code is working for me. You can test this code using static values. Also, please try to clear browser cache.
Hey, thanks for the help,
I came across this discussion and used it do get what I needed:
https://getsatisfaction.com/apperyio/...
The code I used for anyone that needs it:
var d = new Date(value.split(" ")[0]);
console.log(d); //logs "Date {Sat Mar 29 2014 20:00:00 GMT-0400 (EDT)}"
var x = d.toDateString();
console.log(x); // logs "Sat Mar 29 2014"
return x;
I am starting to have this same problem, as Matt. Something is now broken with Appery!
Please provide us with more details, error screen shots will help.
Hello Bahar,
The date in our base is in ISO 8601 format
http://docs.appery.io/documentation/b...
http://www.w3.org/TR/NOTE-datetime
And such code: code d = new Date('2014-05-05T01:00:10.000Z'); /code
Should work without errors