PHP + INFORMIX: Problems with dates
| From: | alejandro dot jose at alicante-ayto dot es | Date: | Wed, 14 Feb 2001 07:24:23 +0000 |
| Subject: | PHP + INFORMIX: Problems with dates | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-6593@lists.php.net to get a copy of this message | ||
Hi,
My problem is about working with dates. When I store dates on Informix
(field of type "date") this date is correctly stored on the DB according
with my current locale (spanish, es_ES). The format is dd/mm/yyyy.
The problem comes when I "just" retrieve this date from the DB and show it
in a page, without any treatment. PHP shows this date in the format
mm/dd/yyyy and I don´t know why. It seems that PHP has any configuration
option that says how to print dates. I've been searching into the
configuration files but I did found nothing.
¿ Why does PHP change the format of dates retrieved from DB ?
Thank you very much and sorry for my awful english.
> \|||/
> (o o)
> ------------------ooO--(_)--Ooo--------------------
> Alejandro José Jerez
> Ayto. de Alicante - Servicio Central de Informática
> Tlf. (+34) 965 149 611 (Directo)
> e-mail: alejandro.jose@alicante-ayto.es
> ---------------------------------------------------
>