Re: Best way to convert PG's TIMESTAMPTZ to PHP DATE? - Mailing list pgsql-php

From David Busby
Subject Re: Best way to convert PG's TIMESTAMPTZ to PHP DATE?
Date
Msg-id 028801c33f43$184e28c0$1100000a@busbydev
Whole thread Raw
In response to Best way to convert PG's TIMESTAMPTZ to PHP DATE?  (Michael Hanna <zen@hwcn.org>)
Responses Re: Best way to convert PG's TIMESTAMPTZ to PHP DATE?
List pgsql-php
Both of these work OK for me

date('r',strtotime($record->date_field));

or

select to_char(date_field,'FORMAT SPEC') as date_field, column_two,
column_three from x where y=z

/B


----- Original Message -----
From: "Michael Hanna" <zen@hwcn.org>
To: <pgsql-php@postgresql.org>
Sent: Monday, June 30, 2003 12:54
Subject: [PHP] Best way to convert PG's TIMESTAMPTZ to PHP DATE?


> Anybody have any advice on this..
> Michael
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>


pgsql-php by date:

Previous
From: Michael Hanna
Date:
Subject: Best way to convert PG's TIMESTAMPTZ to PHP DATE?
Next
From: Jeff
Date:
Subject: Re: Best way to convert PG's TIMESTAMPTZ to PHP DATE?