Re: Dates - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Dates
Date
Msg-id 20040216114945.M17377@megazone.bigpanda.com
Whole thread Raw
In response to Dates  (MaRCeLO PeReiRA <gandalf_mp@yahoo.com.br>)
List pgsql-general
On Mon, 16 Feb 2004, [iso-8859-1] MaRCeLO PeReiRA wrote:

> "I need to know the difference, in days, between two
> dates."

I think date difference will work, so maybe something like:
 CURRENT_DATE - mydate
which should return an integer.

> SELECT date_part('day', age(now(), mydate));


pgsql-general by date:

Previous
From: Andrew Rawnsley
Date:
Subject: Re: Dates
Next
From: MaRCeLO PeReiRA
Date:
Subject: Re: Dates