I am not sure if I'm doing this right, however the date function seems to display correctly, but for some reason it is returning the time in AM not PM, Example,
Right now, if I was to create a new date using:
$time = new mongoDate();
Then I save that on the data base, in the record it displays like so:
ISODate("2014-10-22T00:22:34.619Z")
Am assuming there's something I'm not doing correctly, but when I then format it, using:
date('d M, Y h:ia', $time->sec)
It display like so:
22 Oct, 2014 12:22am
I'm hoping this is something extremely obvious, but from what I can tell in the ISOdate, it's displaying in AM time, so my question is, why is it storing it in AM and not PM?