I get from JSON output the date in JSON encrypt, I want to decode it when I insert it to mysql.
I insert the output:
"date": "/Date(1446739002960)/"
to $dateparse variable
I was write the solution using javascript:
var dateString = "\/Date(753343200000)\/".substr(6);
var currentTime = new Date(parseInt(dateString ));
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var date = day + "/" + month + "/" + year;
alert(date);
How can I decode the variable content using php? thank you
json_decode($yourDate)?