pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Lockhart <lockhart@fourpalms.org>
To: Andy Marden <amarden@usa.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Dates and year 2000
Date: Thu, 21 Feb 2002 14:13:52 +0000
Message-ID: <3C7500A0.72221DCD@fourpalms.org> (raw)
References: <007301c1baad$b60d7b90$0100000a@marden1>
	<a52ep4$2ft6$1@jupiter.hub.org>

> Just discovered that column::date works fine but to_date(column, 'DD.MM.YY')
> causes the problem. I was trying to write portable SQL, but never mind!

Portable (as in SQL9x) would be

  cast(column as date)

which is also accepted by PostgreSQL...

                 - Thomas



view thread (7+ messages)

Message-ID: <3C7500A0.72221DCD@fourpalms.org>
Permalink:  ../3C7500A0.72221DCD@fourpalms.org/
Also on:    postgresql.org/message-id/3C7500A0.72221DCD@fourpalms.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lockhart@fourpalms.org, amarden@usa.net, pgsql-bugs@postgresql.org
  Subject: Re: Dates and year 2000
  In-Reply-To: <3C7500A0.72221DCD@fourpalms.org>

* 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