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
It is pretty simple.
PHP code:
$formatted_date = $newticket['DateCreated'] = date('Y/m/d H:i:s');
Javascript code:
var javascript_date = new Date("");