Date Time Function / Age

From: Alex <alex(at)meerkatsoft(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Date Time Function / Age
Date: 2003-08-28 14:09:44
Message-ID: 3F4E0D28.60904@meerkatsoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
is there an easy way to get the Difference between 2 dates in Days... as
an integer?

age('date1','date2') results in x years y days or something similar.
but I would like to
have the result in number of days as an integer.

Thanks for your help

Alex

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ivar 2003-08-28 14:14:50 Re: Functions have 32 args limt ???
Previous Message Dennis Gearon 2003-08-28 14:06:23 Re: Functions have 32 args limt ???