date_part bug?

From: Salvador Mainé <salvamaine(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: date_part bug?
Date: 2001-03-28 10:52:45
Message-ID: 3AC1C27D.4D64E67E@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello:

I'm using postgres 7.0.2. When I use date_part('day', date) sometimes I
get wrong values. Ie:
and date_part('day', '1999-3-28')=27

and date_part('day', '2000-3-26')=25

Is it a bug? Is there any SQL equivalent function?

--
Salvador Mainé

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Md. Intekhab Alam 2001-03-28 13:04:20
Previous Message Richard Huxton 2001-03-28 10:23:51 Re: RE: pl/pgsql and returning rows