pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chairudin Sentosa Harjo <chai@prima.net.id>
To: pgsql-sql@postgresql.org
Subject: month and 2000
Date: Mon, 04 Oct 1999 17:18:06 +0700
Message-ID: <37F87EDE.D69CE07F@prima.net.id> (raw)

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



Message-ID: <37F87EDE.D69CE07F@prima.net.id>
Permalink:  ../37F87EDE.D69CE07F@prima.net.id/
Also on:    postgresql.org/message-id/37F87EDE.D69CE07F@prima.net.id

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: chai@prima.net.id
  Subject: Re: month and 2000
  In-Reply-To: <37F87EDE.D69CE07F@prima.net.id>
  References: <37F87EDE.D69CE07F@prima.net.id>

* 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