Return to Snippet

Revision: 25164
at March 22, 2010 09:51 by xekonic


Initial Code
list($day, $month, $year) = split('/', $date);
echo date('l, F jS ',  mktime(0, 0, 0, $month, $day, $year));

Initial URL

                                

Initial Description
Frequently I like to make data more user friendly, so while I make it easy for them to add a date as a shorthand format (mm/dd/yyyy) I like to return it as something easier to digest (Day of Month in Year, etc). This is the simplest way to do that I've found

Initial Title
Convert Shorthand Date to Long Form

Initial Tags
form, date

Initial Language
PHP