month and 2000 - Mailing list pgsql-sql

From Chairudin Sentosa Harjo
Subject month and 2000
Date
Msg-id 37F87EDE.D69CE07F@prima.net.id
Whole thread Raw
List pgsql-sql
Dear All,

Two questions:

One
---
How to select a date in order to get this form:
30-OCT-1999

I tried :
select date(sub_date) from tbl_date;
30-10-1999

What switch do I need to get 'OCT'?


Two
---
Why this happen?

tbs=> select date ('now');
     date
----------
01-01-2000
(1 row)

I am sure the time on my computer is correct,
the year is 1999, the month is October
and the date is 4th.
Why the select gives 1st January 2000???

SuSE 6.2, Postgresql 6.5.2, Pentium III.

Regards,
Chai


pgsql-sql by date:

Previous
From: Herouth Maoz
Date:
Subject: Re: [SQL] combining columns in select
Next
From: "Steven M. Wheeler"
Date:
Subject: Re: [SQL] Questions about vacuum analyze