Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id A26FC9FBCF1; Thu, 14 Jun 2007 03:31:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 81169-04; Thu, 14 Jun 2007 03:30:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from pro33.abac.com (pro33.abac.com [66.226.64.34]) by postgresql.org (Postfix) with ESMTP id 298D69FBD32; Thu, 14 Jun 2007 03:30:57 -0300 (ADT) Received: from ashishk (ppp92-7.vsnl.eth.net [61.17.93.7] (may be forged)) (authenticated bits=0) by pro33.abac.com (8.13.8/8.13.8) with ESMTP id l5E6Uli7012105 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 13 Jun 2007 23:30:52 -0700 (PDT) (envelope-from ashish.karalkar@info-spectrum.com) Message-ID: <006101c7ae4c$ed7edbd0$170211ac@LIONKING.COM> From: "Ashish Karalkar" To: , Subject: function to find difference between in days between two dates Date: Thu, 14 Jun 2007 11:56:15 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_005E_01C7AE7B.031BC330" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/829 X-Sequence-Number: 115652 This is a multi-part message in MIME format. ------=_NextPart_000_005E_01C7AE7B.031BC330 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, Is there any function to find differences in days between two dates? I am using=20 select abs(current_date - '2007-06-15') =20 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 ------=_NextPart_000_005E_01C7AE7B.031BC330 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
 
Is there any function to find  = differences in=20 days between two dates?
 
 
I am using
 
select abs(current_date -=20 '2007-06-15')
 
to get the desired result.
but I think there must be a function = and I am=20 missing it,
if so, can anybody please point me to=20 that.
 
 
Thanks in advance
 
With regards
Ashish Karalkar
 
 
 
------=_NextPart_000_005E_01C7AE7B.031BC330--