From: jason.servetar@ccgenesis.com
To: pgsql-sql@postgresql.org
Subject: to_date/to timestamp going to BC
Date: Wed, 3 Oct 2001 14:22:10 -0600
Message-ID: <309339290B4FD31184BC0060B06888CB01D0FDF2@CADILLAC> (raw)
Can someone tell me if this is a bug with the date functions or am I using
them incorrectly?
If anyone has a workaround for this I could use some help this data
conversion.
dev=> create table test_date (dt varchar(100));
CREATE
dev=> insert into test_date values ('March 11, 1997');
INSERT 706020 1
dev=> select dt, to_date(dt, 'Month dd, yyyy'), to_timestamp(dt, 'Month dd,
yyyy') from test_date;
dt | to_date | to_timestamp
----------------+---------------+---------------
March 11, 1997 | 0001-03-19 BC | 0001-03-19 BC
drw_dev=> select version();
version
----------------------------------------------------------------
PostgreSQL 7.1 on sparc-sun-solaris2.6, compiled by GCC 2.95.2
(1 row)
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-sql@postgresql.org
Cc: jason.servetar@ccgenesis.com
Subject: Re: to_date/to timestamp going to BC
In-Reply-To: <309339290B4FD31184BC0060B06888CB01D0FDF2@CADILLAC>
* 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