From: Jean-Luc Lachance <jllachan@nsd.ca>
To: John Sebastian N. Mayordomo <quadratini@sni.ph>
Cc: Pgsql-Sql@Postgresql. Org <pgsql-sql@postgresql.org>
Subject: Re: start and end of the week
Date: Thu, 26 Sep 2002 11:55:48 -0400
Message-ID: <3D932E04.F8D09FDF@nsd.ca> (raw)
References: <1033037809.16948.2.camel@tiger-work.sni.ph>
How about:
select now() - date_part( 'DOW', now()) as starts_on,
now() -date_part( 'DOW', now()) + 6 as ends_on;
"John Sebastian N. Mayordomo" wrote:
>
> How do I get the start and end date of the present week?
> Is this possible?
>
> For example this week
> Start = Sept. 22
> End = Sept. 28
>
> Thank you very much.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
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-sql@postgresql.org
Cc: jllachan@nsd.ca, quadratini@sni.ph
Subject: Re: start and end of the week
In-Reply-To: <3D932E04.F8D09FDF@nsd.ca>
* 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