Aaron Posted August 10, 2009 Share Posted August 10, 2009 (edited) Ok so I want to change the way my date/time echos from the DB In the DB I am using Date/Time as the format, so obviously it would look like this: and that would echo: But what I am trying to get it to echo is: So I am thinking something like strpos and then changing that with str_replace, but I don't know how I would do that. Edited August 10, 2009 by Aaron Quote Link to comment Share on other sites More sharing options...
Aaron Posted August 10, 2009 Author Share Posted August 10, 2009 (edited) So I figured it out, so I don't need help for it anymore. function format_date($oldDate) { return date("d-M-Y H:i:s", strtotime($oldDate)); } Edited August 10, 2009 by Aaron Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.