Re: to_timestamp busted? - Mailing list pgsql-general

From Tod McQuillin
Subject Re: to_timestamp busted?
Date
Msg-id Pine.GSO.4.33.0106260346490.11234-100000@sysadmin
Whole thread Raw
In response to to_timestamp busted?  ("Eliel Mamousette" <eliel@panix.com>)
List pgsql-general
On Mon, 25 Jun 2001, Eliel Mamousette wrote:

> But using:
>
> SELECT to_timestamp(log_date || ' ' ||  log_time,
>         'YYYY-MM-DD HH24:MM:SS'),
>     log_date,
>     log_time
> FROM iis_log limit 10;

Hold on... you said MM twice -- once in the date and once in the time.  I
don't expect you have months in your time, do you?

Try 'YYYY-MM-DD HH24:MI:SS'
--
Tod McQuillin



pgsql-general by date:

Previous
From: Oliver Vecernik
Date:
Subject: Re: Stored procedures?
Next
From: "Richard Huxton"
Date:
Subject: Re: Stored procedures?