Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id F06C712DEAC9 for ; Mon, 23 Apr 2012 04:32:06 -0300 (ADT) Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SMDki-0006Of-Dh for pgsql-admin@postgresql.org; Mon, 23 Apr 2012 07:32:05 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SMDkS-0001vw-4D for pgsql-admin@postgresql.org; Mon, 23 Apr 2012 09:31:48 +0200 Received: from 217.110.94.67 ([217.110.94.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Apr 2012 09:31:48 +0200 Received: from spam_eater by 217.110.94.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Apr 2012 09:31:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: Thomas Kellerer Subject: Re: Getting that starts a week of the year Date: Mon, 23 Apr 2012 09:33:12 +0200 Lines: 8 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.67 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Pg-Spam-Score: -0.7 (/) X-Archive-Number: 201204/119 X-Sequence-Number: 39455 Wells Oliver, 22.04.2012 00:58: > Is there a way to get the date that starts week 14, or 15 (etc)? Try this: select to_date('201214', 'iyyyiw') That uses the ISO week definition.