X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B3F97D1BA98 for ; Wed, 7 Apr 2004 10:10:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 88187-06 for ; Wed, 7 Apr 2004 10:10:15 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id AB46BD1B8C0 for ; Wed, 7 Apr 2004 10:10:11 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i37DAAT1062400 for ; Wed, 7 Apr 2004 13:10:11 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i37Clm9A057588 for pgsql-sql@postgresql.org; Wed, 7 Apr 2004 12:47:48 GMT From: Cris Carampa X-Newsgroups: comp.databases.postgresql.sql Subject: setting a non-standard date format for the duration of a session Date: Wed, 07 Apr 2004 14:47:52 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 8 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 X-Accept-Language: it, en-us To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/79 X-Sequence-Number: 17454 I understand I can use the function to_date(s,f) for converting a string into a date using a non-standard format. I'm wondering if there is a way to set a non-standard date format for the duration of a session, something like the "ALTER SESSION SET NLS_DATE_FORMAT='f'" Oracle statement. Thank you. Kind regards, Cris