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

