Two digits year formatting

From: Alexander Zaitsev <azaitsev(at)goldwiretech(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: Two digits year formatting
Date: 2001-09-10 14:29:21
Message-ID: 5.1.0.14.0.20010910101921.01b549f8@mail.goldwiretech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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(at)goldwiretech(dot)com

PS. The document
http://www.postgresql.org/idocs/index.php?functions-formatting.html does
not provide with the solution.

Browse pgsql-docs by date

  From Date Subject
Next Message Thomas Lockhart 2001-09-11 15:13:22 Re: NULLs and sort order
Previous Message Rene Pijlman 2001-09-09 14:58:18 NULLs and sort order