From: Alexander Zaitsev <azaitsev@goldwiretech.com>
To: pgsql-docs@postgresql.org
Subject: Two digits year formatting
Date: Mon, 10 Sep 2001 10:29:21 -0400
Message-ID: <5.1.0.14.0.20010910101921.01b549f8@mail.goldwiretech.com> (raw)
Hello:
Is there any way to make Postgres think of the year '00' as of the year
2000 during the to_date function execution?
I tried following:
select to_date('01/01/00', 'MM/DD/YY');
select to_date('01/01/00', 'MM/DD/RR');
In both cases the result is 0001-01-01 BC
Thanks.
Alexander Zaitsev
azaitsev@goldwiretech.com
PS. The document
http://www.postgresql.org/idocs/index.php?functions-formatting.html does
not provide with the solution.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: azaitsev@goldwiretech.com
Subject: Re: Two digits year formatting
In-Reply-To: <5.1.0.14.0.20010910101921.01b549f8@mail.goldwiretech.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox