> function cleandate($indate) {
> str_replace("-", "/", $indate);
> return date("F j, Y", strtotime($indate));
> }
I suspect that you actually need something like this:
function cleandate($indate) {
$indate = str_replace("-", "/", $indate);
return date("F j, Y", strtotime($indate));
}
Although, to be honest, you can probably get away with:
function cleandate($indate) {
return date("F j, Y", strtotime($indate));
}
And, ultimately, you may even find that you're better off just doing the
date manipulation in mysql instead and leave it at that.
CYA, Dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php