Date formatting question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux