Re: start and end of the week

Поиск
Список
Период
Сортировка
От Jean-Luc Lachance
Тема Re: start and end of the week
Дата
Msg-id 3D932E04.F8D09FDF@nsd.ca
обсуждение исходный текст
Ответ на start and end of the week  (John "Sebastian N. Mayordomo" <quadratini@sni.ph>)
Ответы Re: start and end of the week
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: start and end of the week
Следующее
От: Andrew Perrin
Дата:
Сообщение: Re: SQL formatter?