We use to_char(datefield,'dd Mon yyyy hh24:mm') which is a postgres function that formats the date function ie select to_char(datestarted,'dd Mon yyyy hh24:mm') as datestarted from testtable but also have the same problems...
Alvaro wrote:
Hi everybody!!
I want to extract a date stored in a postgres
database .
when I use date("Y-m-d") it returns the local date. when I use date("Y-m-d", pg_result($con,0,'date_var')) it returns a date that is different the one I stored.
How can I told the date function that I want to format the date stored in tha database not the local date ?
Thanks,
.alvaro.