Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Comparing Dates

Re: Comparing Dates

From: Dennis M. Heisler <dheisler_at_binghamton.edu>
Date: Thu, 27 May 1999 15:05:47 -0400
Message-ID: <374D978B.25653C25@binghamton.edu>


 It's the number of days between date1 and date2. The query

select to_date('27-may-99 12:00', 'dd-mon-yy hh24:mi') - to_date('25-may-99')
from dual;

you will get 2.5 (noon on the 27th - midnight on the 25th).

Dennis

Fred Ruffet wrote:

> I know this, but what is the unit for the result of date1-Date2 ?
>
> Fred
Received on Thu May 27 1999 - 14:05:47 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US