Make timestamp more readable
Hello guys , this post for the newbie .Ofter we need to store the current time using mysql NOW() , but when later we want to print that we get 2009-02-05 19:02:49 .
But using a single line we can make that like 05 Feb, 2009 .
<? echo date("d M, Y",strtotime($date)); // Here $date is the timestamp value from the database . ?>
Handy code hun ?