I path php datetime object by ajax.
Now I could get like this in javascript.
{"timezone":{"name":"Asia\/Tokyo","location":{"country_code":"JP","latitude":35.65231,"longitude":139.74232,"comments":""}},"offset":32400,"timestamp":1472655600}
how can I change this into javascript date object.
At first, parse date,
myDate = JSON.parse(myDate||"null");
console.log(myDate);
then I can get consolelog like this.
{timezone: {…}, offset: 32400, timestamp: 1472655600}