Subject | How to format date using Firebird field |
---|---|
Author | rc.199011 |
Post date | 2009-08-16T01:24:42Z |
I am using Windows Vista Premium and Ubuntu 9.4, Apache 2, PHP 5.2.9 and Firebird 2.1.
When I make a select against Firebird, the date filed is showm as "m/d/Y H:M:S", but I need show li "d/m/Y H:M".
I have tried change PHP.ini and use init_set(ibase.dateformat, "%d-%m-%Y"), but they did not work.
Is there a function similar to "number_format($row->MONEY_VALUE, 2, ',', '.')" to format date and time?
Thanks,
Roberto Carlos
When I make a select against Firebird, the date filed is showm as "m/d/Y H:M:S", but I need show li "d/m/Y H:M".
I have tried change PHP.ini and use init_set(ibase.dateformat, "%d-%m-%Y"), but they did not work.
Is there a function similar to "number_format($row->MONEY_VALUE, 2, ',', '.')" to format date and time?
Thanks,
Roberto Carlos