Subject | How to set default date format ? |
---|---|
Author | hamacker |
Post date | 2004-10-07T16:43:22Z |
hi everybody.
Here we use date format different from USA (MM-DD-YYYY), we use european
date format as DAY-MONTH-YEAR.
In PHP every time that I use date fields, I have to complex replace "/"
with ".", like this :
$my_european_date=str_replace("/",".",$HTTP_POST_VARS["date_var_mm-dd-yyy"])
;
I tried :
ibase_timefmt("%d/%m/%Y", IBASE_DATE);
ibase_timefmt("%H:%M", IBASE_TIME);
ibase_timefmt("%d/%m/%Y %H:%M", IBASE_TIMESTAMP);
but only run to show output and not to input vars.
I would like to know if exists in php.ini (or other) some parameters to
set european date as default. Any solution ?
Here we use date format different from USA (MM-DD-YYYY), we use european
date format as DAY-MONTH-YEAR.
In PHP every time that I use date fields, I have to complex replace "/"
with ".", like this :
$my_european_date=str_replace("/",".",$HTTP_POST_VARS["date_var_mm-dd-yyy"])
;
I tried :
ibase_timefmt("%d/%m/%Y", IBASE_DATE);
ibase_timefmt("%H:%M", IBASE_TIME);
ibase_timefmt("%d/%m/%Y %H:%M", IBASE_TIMESTAMP);
but only run to show output and not to input vars.
I would like to know if exists in php.ini (or other) some parameters to
set european date as default. Any solution ?