From: Ashish Karalkar <ashish.karalkar@info-spectrum.com>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: function to find difference between in days between two dates
Date: Thu, 14 Jun 2007 11:56:15 +0530
Message-ID: <006101c7ae4c$ed7edbd0$170211ac@LIONKING.COM> (raw)
Hello all,
Is there any function to find differences in days between two dates?
I am using
select abs(current_date - '2007-06-15')
to get the desired result.
but I think there must be a function and I am missing it,
if so, can anybody please point me to that.
Thanks in advance
With regards
Ashish Karalkar
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: ashish.karalkar@info-spectrum.com, pgsql-general@postgresql.org
Subject: Re: function to find difference between in days between two dates
In-Reply-To: <006101c7ae4c$ed7edbd0$170211ac@LIONKING.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