Re: TO_DATE and single digit months driving me nuts...

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Philip Hallstrom <philip(at)adhesivemedia(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: TO_DATE and single digit months driving me nuts...
Date: 2000-05-24 11:03:52
Message-ID: Pine.LNX.3.96.1000524125615.19342A-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Tue, 23 May 2000, Philip Hallstrom wrote:

> Hi -
> I'm playing around with inserting dates into a timestamp field and
> am getting annoyed at single digit dates/days/hours/minutes.
> The problem is that I have something like:
> TO_TIMESTAMP('2000 5 25 09 30', 'YYYY MM DD HH24 MI')

If I good understand you:

test=# select TO_TIMESTAMP('2000 5 25 09 30', 'YYYY FMMM DD HH24 MI');
to_timestamp
------------------------
2000-05-25 09:30:00+02

The 'FM' (fill-mode) is a local option and is always used for next element.
In your example for 'MM'. Without 'FM' formatter expect full number.

Karel

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karel Zak 2000-05-24 12:05:13 Re: TO_DATE and single digit months driving me nuts...
Previous Message Guillaume Perréal 2000-05-24 10:22:39 Fwd: Bug with groups and access permissions (7.0.0RC1): more information