Обсуждение: Two digits year formatting

Поиск
Список
Период
Сортировка

Two digits year formatting

От
Alexander Zaitsev
Дата:
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.