When looking over my code for a bug, I realized that while the timestamp I was passing from the JQuery-UI-Picker was in the format of 10/06/2015 16:08
, my MYSQL Insert statement was using FROM_UNIXTIME and converting it to all 0's. To fix this, I need to convert this time to the format 00-00-0000 00:00:00.
I found the date_create_from_format
function I had not seen before, however when using it I am getting a False return. As I believe I am using it properly, can anyone please help in pointing out what the problem is?
$dt = "10/06/2015 16:08";
$res = date_create_from_format('m/d/y h:i', $dt);