RE: [phplib] How do I format a date field from Mysql in phplib. From: layne <email protected>
Date: 08/30/00

> I al looking to output a date into my page from the date
> field of a table. When I just echo ($q->f(mod_date)); I get
> the European formatted date and time. All I want is the US
> formatted date to display. How do I go about doing this??

In your query do "select ... unix_timestamp(mod_date) as mod_date ...", then
use the date function in php to convert it.
  echo date("F j, Y" ,$q->f(mod_date));

Layne Weathers
Lead Programmer
Ifworld, Inc.

P.S. this is really a php question... oh, never mind

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>