 Joined: Oct 2008 Posts: 8

United States
|
Oct 05, 2008, 07:26:49 PM | #1 |
I'm trying to do things the right way and now I've been using the "datetime" datatype in my mysql tables where they contain dates and times when I used to use varchar.
The problem is this...
When I pull a date from the db for html output, instead of the current display of 2008-10-05 19:13:37, my client wants it to show October 5, 2008, 7:28pm.
This was a no-brainer when I was just using string data... but now it's a headache
How can I easily convert an accurate datetime type to something like the above?
Can it be done? |
|