Re: Getting the week of a date - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Getting the week of a date
Date
Msg-id 200402161303.12330.dev@archonet.com
Whole thread Raw
In response to Getting the week of a date  ("Kumar" <sgnerd@yahoo.com.sg>)
List pgsql-sql
On Monday 16 February 2004 12:10, Kumar wrote:
>
> test=# select date_trunc('week',current_date + ('5 month')::INTERVAL);
> ERROR:  TIMESTAMP units 'week' not supported

Try EXTRACT(week FROM ...)

--  Richard Huxton Archonet Ltd


pgsql-sql by date:

Previous
From: Robert Creager
Date:
Subject: Re: Getting the week of a date
Next
From: sad
Date:
Subject: Re: Getting the week of a date