BAV0
Apr 7, 2012, 04:38 AM
why does $visitdate = date(d/m/Y h:i:s A O); results in an unexpected T_STRING error?
bobobeer
May 30, 2012, 05:25 PM
Try this:
$visitdate = date('d/m/Y h:i:s A O');
You need to pass in a string as the date functions parameter, so add some quotes around what you are passing in to make it a string.
For more on this function please refer to PHP: date - Manual (http://php.net/manual/en/function.date.php)