pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitriy Igrishin <dmitigr@gmail.com>
To: Shruthi A <shruthi.iisc@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to get the previous date?
Date: Wed, 14 Oct 2009 13:43:51 +0400
Message-ID: <b4399d110910140243q408a3e50y46dd7da936bdfe57@mail.gmail.com> (raw)
In-Reply-To: <6caee9520910140240u13daba93ua20637642727776e@mail.gmail.com>
References: <6caee9520910140240u13daba93ua20637642727776e@mail.gmail.com>

Hello.

current_date - 1 is the solution.

2009/10/14 Shruthi A <shruthi.iisc@gmail.com>

> Hi,
>
> I'm using Enterprise DB PostgresPlus version 8.3.
> Is there is a simple function or command like previous_date(mydate) which
> when passed a particular date, simply returns the previous date? I tried
>
> mydate - 1
>
> but this doesnt work.
>
> Thanks,
> Shruthi

view thread (5+ messages)  latest in thread

Message-ID: <b4399d110910140243q408a3e50y46dd7da936bdfe57@mail.gmail.com>
Permalink:  ../b4399d110910140243q408a3e50y46dd7da936bdfe57@mail.gmail.com/
Also on:    postgresql.org/message-id/b4399d110910140243q408a3e50y46dd7da936bdfe57@mail.gmail.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: dmitigr@gmail.com, shruthi.iisc@gmail.com
  Subject: Re: How to get the previous date?
  In-Reply-To: <b4399d110910140243q408a3e50y46dd7da936bdfe57@mail.gmail.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