Hi
I want to make a script that subtract 2 date from each other, and returns how many hours and minutes there are between the 2 dates.
I made this script that seems to work but gives a funny output
This is the select sentence
select (to_date('2002 Aug 26 13 22','YYYY Mon DD HH24 MI') - to_date('20020826 1321 ','YYYYMMDD HH24MI')) from dual;
The output is this:
(TO_DATE('2002AUG261322','YYYYMONDDHH24MI')-TO_DATE('200208261321','YYYYMMDDHH24
--------------------------------------------------------------------------------
.000694444
I'd like the script to return the number of hour and minutes between the dates.
Thanks.
I want to make a script that subtract 2 date from each other, and returns how many hours and minutes there are between the 2 dates.
I made this script that seems to work but gives a funny output
This is the select sentence
select (to_date('2002 Aug 26 13 22','YYYY Mon DD HH24 MI') - to_date('20020826 1321 ','YYYYMMDD HH24MI')) from dual;
The output is this:
(TO_DATE('2002AUG261322','YYYYMONDDHH24MI')-TO_DATE('200208261321','YYYYMMDDHH24
--------------------------------------------------------------------------------
.000694444
I'd like the script to return the number of hour and minutes between the dates.
Thanks.