Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5TEh6a87338 for ; Fri, 29 Jun 2001 10:43:06 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 79059; Fri, 29 Jun 2001 07:43:00 -0700 From: "Josh Berkus" Subject: Re: day difference To: "Jackie Siu" , pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Fri, 29 Jun 2001 07:43:00 -0700 Message-ID: In-Reply-To: <9h12ft$1gpg$1@news.tht.net> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200106/468 X-Sequence-Number: 3771 Jackie, > Is there exist a function to calculate day difference between two > date. For > example: select functionx('1JAN2001','5FEB2001') from abc where .... > Then it > returns 36 (days). Thanks for your help. > See the thread entitled "DateDiff" earlier this week, or search the archives. -Josh ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco