Re: How can I get the first and last date of a week, based on the week number and the year - Mailing list pgsql-general

From Tom Lane
Subject Re: How can I get the first and last date of a week, based on the week number and the year
Date
Msg-id 14687.1204092803@sss.pgh.pa.us
Whole thread Raw
In response to Re: How can I get the first and last date of a week, based on the week number and the year  (Adrian Klaver <aklaver@comcast.net>)
List pgsql-general
Adrian Klaver <aklaver@comcast.net> writes:
> On Tuesday 26 February 2008 8:39 pm, Tom Lane wrote:
>> date_trunc('week', ...) would probably be a more convenient way of doing
>> that.

> I am not sure I follow. The OP has a ISO week number and a year and wants
> dates. I thought date_trunc('field',source) requires a timestamp or interval
> as its source.

Oh, you are right ... I misread the question :-(

            regards, tom lane

pgsql-general by date:

Previous
From: craigp
Date:
Subject: bug in 8.3? foreign key refers to different type
Next
From: Stuart Brooks
Date:
Subject: Re: autovacuum not freeing up unused space on 8.3.0