Is there anyway you could go from lets say 10/24/2006 into Tuesday, October 24, 2006. The last part I could do using explode and cases. But I don't know how to make it find the day of the week. Any Idea?
$date = '10/24/2006'; list($mo, $day, $yr) = explode('/', $date) echo date('l, F j, Y', strtotime("$yr/$mo/$day"));
Or:
$date = '10/24/2006'; echo date('l, F j, Y', strtotime($date));
Installer wrote:Or:$date = '10/24/2006'; echo date('l, F j, Y', strtotime($date));
I wasn't sure how strtotime() handles values such as "12/10/2006" (is that mm/dd/yyyy or dd/mm/yyyy), so I played it safe instead of finding out. 😉
The way I remember it is that with slashes instead of dashes, strtotime() interprets it as U.S. style (mm/dd/yyy).