Re: FORMS 3.X - SYSDATE calculation problem

From: Pierre Bar <_pierre.bar_at_tractebel.be_>
Date: 1997/04/24
Message-ID: <01bc5075$b42ee860$b103018e_at_pc4496>#1/1


Try this :
select ADD_MONTHS(sysdate, -48) from dual;

mcgrathm_at_admin1.tcd.ie wrote in article <1997Apr22.120757_at_admin1.tcd.ie>...
>
>
> Hi,
>
> I'm doing a date calculation in ver. 3.x forms that is to
> find the exact date 4 yrs ago e.g.
>
> if today = 22-Apr-1997 then
> 4 yrs ago = 22-Apr-1993.
>
> I've tried a few fixes including
>
> sysdate - (4 * 365) (leap yrs )
>
> to_char(sysdate,'yyyy') - 4.
>
> I would be interested in hearing from anyone else with a solution to
 this
> puzzle.
>
> TIA,
>
> Michael.
>
Received on Thu Apr 24 1997 - 00:00:00 CEST

Original text of this message