Posted by comp.lang.php on 10/16/01 11:39
$result[$i]->record_entered contains the current date as set up by MySQL (entered as "now()"). I verified that in the database the date is "now()", which in this case will be "2/9/2006". However, when viewing the page using the display: [PHP]<?= date('n/j/Y', strtotime($result[0]->record_entered)) ?>[/PHP] I get "2/8/2006" instead, even though the database back-end says "2/9/2006". What's going on? Thanx Phil
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming