Hi all, I have a date entered into a mysql database in the format:
yyyy-mm-dd. I want to retrieve the date and display it in a different format
using php. For example, if the mysql date entered is: 2005-03-08, I would
like to display it on a webpage as:
March 8th, 2005
Any ideas? I have read up on the php date() function but I only know how to
get the current date and not how to format/display existing dates in
different formats.
Thanks in advance,
Mosher
yyyy-mm-dd. I want to retrieve the date and display it in a different format
using php. For example, if the mysql date entered is: 2005-03-08, I would
like to display it on a webpage as:
March 8th, 2005
Any ideas? I have read up on the php date() function but I only know how to
get the current date and not how to format/display existing dates in
different formats.
Thanks in advance,
Mosher
Comment