Date calculation
Hi Everyone!
I have a form which as a button that does some date calculation. I want to compare to dates together. I am using sysdate and hire_date.
Here's my piece of code:
begin
tmp := hire_date;
select to_char(add_months(sysdate,-1),'mm/')||'1/'||to_char(sysdate,'rr') into tmpbeg from dual;
if tmp >= tmpbeg then
...
end if;
I receive an error on my select statement (I tried the select statement in SQLPlus and it work fine). The error is: PDE-XDA001 Date operation failed (Oracle Error).
DB: 7.3.4 Forms: 6.0.8.12.1
Thanks in advance.
~Vannette