pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-admin@postgresql.org
Subject: Re: Getting that starts a week of the year
Date: Mon, 23 Apr 2012 09:33:12 +0200
Message-ID: <jn30gp$fbc$1@dough.gmane.org> (raw)
In-Reply-To: <CAOC+FBXUHsUF5Xj3AM8dpz4jz2q17SXKy=-rZTsi9GyVrbB36A@mail.gmail.com>
References: <CAOC+FBXUHsUF5Xj3AM8dpz4jz2q17SXKy=-rZTsi9GyVrbB36A@mail.gmail.com>

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.




view thread (3+ messages)  latest in thread

Message-ID: <jn30gp$fbc$1@dough.gmane.org>
Permalink:  ../jn30gp$fbc$1@dough.gmane.org/
Also on:    postgresql.org/message-id/jn30gp$fbc$1@dough.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: Getting that starts a week of the year
  In-Reply-To: <jn30gp$fbc$1@dough.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox