Re: Week number - Mailing list pgsql-hackers

From Markus Bertheau
Subject Re: Week number
Date
Msg-id 1006956823.4770.45.camel@entwicklung01.cenes.de
Whole thread Raw
In response to Week number  ("Wodzu" <wodzu@wodzus.prv.pl>)
Responses Re: Week number
List pgsql-hackers
On Wed, 2001-11-28 at 13:09, Wodzu wrote:
> I'm novice in PostgreSQL.

Then pgsql-novice is the correct list to ask this kind of question.
> I want to obtain current week number.
> Under PHP I try:
>
> $query = "SELECT EXTRACT(WEEK FROM NOW)";
> $result= pg_exec($dbconn,$query);

select date_part('week', CURRENT_TIMESTAMP);

Markus Bertheau



pgsql-hackers by date:

Previous
From: "Wodzu"
Date:
Subject: Week number
Next
From: Thomas Lockhart
Date:
Subject: Re: Call for platform testing