As ive echoed out the datetime value from my db, i am now trying to display this value to edit it in the datetime-local field within my form. The datetime vaue from db is set to: 22/3/2017 10:00:00
however, after attempting to use the following code, im left with this: 1970-01-01T01:00:00
$dat = date("Y-m-d\TH:i:s", strtotime($_GET["dat"]));
How & why is this function not working correctly to display '22/3/2017 10:00' in the form field?