oracle function to calculate days between dates code example Example: oracle difference between two dates in days v_numvar := dt1-dt2;