I have a PHP script that outputs an array of data. This is then transformed into JSON using the json_encode() function.
JSON
json_encode()
My issue
Javascript Date class supports ISO 8601 date format so I would recommend:
format('c'); ?>
documentation says that: format character 'c' is ISO 8601 date (added in PHP 5) example: 2004-02-12T15:19:21+00:00
for more information: http://php.net/manual/en/function.date.php