Subject Re: [firebird-php] How to format date using Firebird field
Author Lester Caine
rc.199011 wrote:
> 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?

I do the display formatting IN php using the PHP date/time functions.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php