Re: How to get the previous date?

From: msi77 <msi77(at)yandex(dot)ru>
To: pgsql-sql(at)postgresql(dot)org,Shruthi A <shruthi(dot)iisc(at)gmail(dot)com>
Subject: Re: How to get the previous date?
Date: 2009-10-14 20:41:24
Message-ID: 29871255552884@webmail102.yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Try this:

select cast(mydate as date) -1

> 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

Почта со встроенным плеером находится здесь: http://mail.yandex.ru/promo/new/wysiwyg

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Adrian Klaver 2009-10-14 20:54:17 Re: How to order varchar data by word
Previous Message Oliveiros C, 2009-10-14 14:13:22 How to order varchar data by word