code_junkie

Converting mysql TIME from 24 HR to AM/PM format

Nov 11th, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. select a, b, c, UNIX_TIMESTAMP(instime) as unixtime;
  2.  
  3. <?php echo date('Y/m/d', $row->unixtime); ?>
Add Comment
Please, Sign In to add comment