Re: Is there a function in SQL to calculate days between two dates?

From: David <davidp3_at_soho.ios.com>
Date: 1996/03/29
Message-ID: <4jfrgm$o0_002_at_davidp3.ios.com>#1/1


In article <4jebm8$hfe_at_camelot.ccs.neu.edu>, jiang_at_ccs.neu.edu (Hong Jiang) wrote:
>Hi,
>
>I am new in SQL area. Could someone over there tell me there is a function in
>SQL to calculate days between two dates? For example, how many days between
>Jan. 23 1995 and Feb. 1 1996? I haven't found any function calculating days
>directly. I know I could write a pices of program to implement this, but
>I hope if there is such function I can just call.
>
>Thank you very much.
>
>Jiang Hong
SELECT MONTHS_BETWEEN(TO_DATE('02-02-1992', 'MM-DD-YYYY'),

                      TO_DATE('01-01-1992', 'MM-DD-YYYY')) 
Received on Fri Mar 29 1996 - 00:00:00 CET

Original text of this message