Re: Current Year

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Hunter Hillegas <hunter(at)lastonepicked(dot)com>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Current Year
Date: 2001-02-15 18:36:00
Message-ID: Pine.LNX.4.30.0102151933250.1211-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hunter Hillegas writes:

> I have an HTML form that submits to Postgre 7.1 beta 4 and I'm wondering how
> to get the current year from the database...

select extract(year from current_date);

> Also, is there a good reference to the PostgreSQL function library? I've
> looked around and can't seem to find one.

http://www.postgresql.org/users-lounge/docs/7.0/user/functions.htm

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message bcs-brockmann.de 2001-02-15 18:54:30 Error by starting postmaster
Previous Message Peter Eisentraut 2001-02-15 18:32:03 Re: misc psql questions