Re: How can I get the first and last date of a week, based on the week number and the year

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How can I get the first and last date of a week, based on the week number and the year
Дата
Msg-id 14687.1204092803@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 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>)
Список 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 по дате отправления: