Re: Find all the dates in the calendar week?

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: Stephane Bortzmeyer <bortzmeyer(at)pasteur(dot)fr>
Cc: Andrew Snow <als(at)fl(dot)net(dot)au>, "Pgsql-General(at)Postgresql(dot) Org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Find all the dates in the calendar week?
Date: 2000-07-06 09:17:09
Message-ID: 39644E95.6F3B4E8C@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephane Bortzmeyer wrote:
>
> On Thursday 6 July 2000, at 18 h 5, the keyboard of "Andrew Snow"
> <als(at)fl(dot)net(dot)au> wrote:
>
> > SELECT event FROM events WHERE to_char(CURRENT_TIMESTAMP, 'ww') =
> > to_char(eventdate, 'ww');
>
> Sorry, I should have mentioned that I played with to_char and it seems the documentation is wrong:
>
> conferences=> select * from conferences where to_char(CURRENT_TIMESTAMP, 'ww') =
> conferences-> to_char(date_begin, 'ww');
> ERROR: No such function 'to_char' with the specified attributes
>
> Or it is a new feature of PostgreSQL 7?

to_xxx are new to 7.0, thanks to Karel Zak.

Mike Mascari

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pablo Niklas 2000-07-06 09:32:21 Convert dbf to pgsql tables
Previous Message Samy Elashmawy 2000-07-06 09:12:23 Re: PostgreSQL & the BSD License