pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Boulat Khakimov <boulat@inet-interactif.com>
To: pgsql-sql@postgresql.org
To: psql-novice@postgresql.org
To: pgsql-general@postgresql.org
Subject: Date question
Date: Tue, 06 Mar 2001 14:19:59 -0500
Message-ID: <3AA5385F.F308159D@inet-interactif.com> (raw)

Hi,

Im a little bit stuck here.

Does anyone know how to get date in format 'YYYY-MM-DD' of a date one
year from now.
So for example today is '2001-03-06' I need to get date 12 months from
now
which will be '2002-03-06' in todays case...

In mysql I used  DATE_ADD(CURDATE(), INTERVAL 12 MONTH) , but that
doesnt work in PG.


Regards,
Boulat Khakimov


-- 
Nothing Like the Sun



view thread (15+ messages)  latest in thread

Message-ID: <3AA5385F.F308159D@inet-interactif.com>
Permalink:  ../3AA5385F.F308159D@inet-interactif.com/
Also on:    postgresql.org/message-id/3AA5385F.F308159D@inet-interactif.com

 · 

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-sql@postgresql.org
  Cc: boulat@inet-interactif.com, psql-novice@postgresql.org, pgsql-general@postgresql.org
  Subject: Re: Date question
  In-Reply-To: <3AA5385F.F308159D@inet-interactif.com>

* 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