I am trying to print a date and time stored in a DB.
Here is my code
print date("d-m-y H:i",strtotime($created));
This shows the date as 01-01-70 01:00
however the date in the DB is 2013-10-04 14:18:17
Can anyone help?
I am trying to print a date and time stored in a DB.
Here is my code
print date("d-m-y H:i",strtotime($created));
This shows the date as 01-01-70 01:00
however the date in the DB is 2013-10-04 14:18:17
Can anyone help?
you sure about that ? i test it and got worked :
date("d-m-y H:i",strtotime('2013-10-04 14:18:17')); // output : 04-10-13 14:18