Re: converting a specified year and week into a date - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: converting a specified year and week into a date
Date
Msg-id 200702141231.51132.peter_e@gmx.net
Whole thread Raw
In response to Re: converting a specified year and week into a date  (Alban Hertroys <alban@magproductions.nl>)
List pgsql-general
Am Mittwoch, 14. Februar 2007 11:53 schrieb Alban Hertroys:
> I think you're looking for this:
>
> select to_date('01 2004', 'WW YYYY');
>   to_date
> ------------
>  2004-01-01
> (1 row)

Or possibly to_date('01 2004', 'IW IYYY'), depending on taste.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: converting a specified year and week into a date
Next
From: Raymond O'Donnell
Date:
Subject: Re: help and Links using postgreSQL with ASP