Re: Date formatting question
| From: | Phpster | Date: | Thu, 09 Apr 2009 03:54:32 +0000 |
| Subject: | Re: Date formatting question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46107@lists.php.net to get a copy of this message | ||
See the date function
Http://www.php.net/date
Bastien
Sent from my iPod
On Apr 8, 2009, at 21:41, Jack Lauman <jlauman@nwcascades.com> wrote:
I need to reformat the output of the 'dates' field from '2009-04-08' to 'Wed. Apr. 8th'. Any help would be appreciated. Thanks. --- for ($counter = 0; $counter < mysql_num_rows($resultID); $counter++); while ($row = mysql_fetch_object($resultID)) { print "<tr>"; print "<td>" . $row->dates . "</td>"; print "<td>" . $row->times . "</td>"; print "<td>" . $row->am_pm . "</td>"; print "<td>" . $row->height . "</td>"; print "<td>" . $row->cond . "</td>"; print "</tr>"; } --PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php