The mysql db I'm working with gives me a date in this format "0513" which means "May 13". I'd like the app I'm building to output "May 13". Any ideas on how to accomplish this? strtotime() does me no good (at least not so far...). Thanks! -Chris
$date = '0513'; echo date('F j', mktime(0, 0, 0, substr($date, 2, 2), substr($date, 0, 2)));
Nothing wrong with that solution, but in case you're still wondering how to do it with strtotime():
$my_date = '0513'; echo date('F j', strtotime(date('Y') . $my_date)); // May 13
Thank you both for the help. Problem solved!