Re: [phplib] How do I format a date field from Mysql in phplib. From: Tom Duffey (cortex <email protected>)
Date: 08/30/00

If the date in your db looks like "YYYY-MM-DD" then something like this
will be useful:

list ($year, $month, $day) = split ("-", $q->f("mod_date"));

Tom Duffey

> 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??
>
> Thanks in advance.

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