John Holmes wrote:
> Why don't you just use DATE_FORMAT() in your query, then you don't have
> to do any extra PHP code at all??

you might want a link to that:
<> - look 
somewhat below the middle of the page

>>function cleandate($indate) {
>>      str_replace("-", "/", $indate);
>>      return date("F j, Y", strtotime($indate));
>>      }

check the $indate - response from the db - if you give invalid data 
there then it will (probably) use a timestamp instead, whith now()-values...

>> when I echo $newdate using the above code, I get "June 20, 2002" -
>> today's date.


Jesper Brunholm

Phønix - Danish folk music from young musicians -

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to