Re: Postgresql datestyle
| From: | Brinzoi Constantin Aurelian | Date: | Tue, 09 Jan 2001 15:42:47 +0000 |
| Subject: | Re: Postgresql datestyle | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5755@lists.php.net to get a copy of this message | ||
Hi Nicholas !
Maybe you want to enter:
set datestyle to 'european';
It works ?
----- Original Message -----
From: "Sanders, Nicholas" <SandersN@logica.com>
To: "php-db@lists. php. net (E-mail)" <php-db@lists.php.net>
Sent: Tuesday, January 09, 2001 7:27 PM
Subject: [PHP-DB] Postgresql datestyle
> Hi,
>
> Has anyone out there got any experience with datestyle in Postgresql
>
> I have an update like
>
> set datestyle to sql;
> set datestyle to european;
> update t_staff_dates set date_field = '1/2/2000' where id = 1;
>
> and when I do the following select
>
> set datestyle to sql;
> set datestyle to european;
> select * from t_staff_dates where id = 1;
>
> it returns 2/1/2000 (in the database it is '2000-01-02') so the select works
> but the update doesn't.
>
> Any ideas?
>
> Cheers
>
> Nick
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net