Date Format error

From: Date: Thu, 25 Nov 2004 18:38:55 +0000
Subject: Date Format error
Groups: php.general 
Request: Send a blank email to php-general+get-202867@lists.php.net to get a copy of this message
I'm getting a: Parse error: parse error, unexpected '%' in /home/mysite/public_html/userpage.php on line 120 <th scope="row"><?php echo $rsVJ->Fields('DATE_FORMAT(LstUpdate,'%m/%d/%Y')'); ?></th> <th scope="row"><?php echo $rsVJ->Fields('DATE_FORMAT(InitOn,'%m/%d/%Y')'); ?></th> <th scope="row"><?php echo $rsVJ->Fields('DATE_FORMAT(PostStart,'%m/%d/%Y')'); ?></th> Using this format /syntax DATE_FORMAT(PostStart,'%m/%d/%Y')worked in a regular database query. Apparently not with echo. I tried no ', also tried " around them, both produced nothing, no error but no returned date. Thank you Stuart

« previous php.general (#202867) next »