Hi DRN,

@ 8:34:08 PM on 4/14/2001, DRN wrote:

...
> $date = $row["date"];

> $new_date = date("l, j M Y, G:i:s", strtotime($date));
> ~~

> but I cannot get this to work :(, I get an "unexpected error in
> date()"
...

Try this and see if it functions correctly:

<?php

$date = str_replace('-','/',$row["date"]);
$new_date = date("l, j M Y, G:i:s", strtotime($date));

?>

Your original code gives me the same error, but the above code
functions normally for me.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to