Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mydate = '2012-05-28 13:22:55';
- echo date('m/d/Y', strtotime($mydate));
- // displays: 05/28/2012
- echo date('Y-m-d H:i:s', strtotime($mydate));
- // displays: 2012-05-28 13:22:55
- // see: http://php.net/manual/en/function.date.php
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement