Date: 08/30/00
- Next message: greg <email protected>: "RE: [phplib] How do I format a date field from Mysql in phplib."
- Previous message: darcy w. christ: "[phplib] question about auth passing session id"
- Next in thread: greg <email protected>: "RE: [phplib] How do I format a date field from Mysql in phplib."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: greg <email protected>: "RE: [phplib] How do I format a date field from Mysql in phplib."
- Previous message: darcy w. christ: "[phplib] question about auth passing session id"
- Next in thread: greg <email protected>: "RE: [phplib] How do I format a date field from Mysql in phplib."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

