Skip to Content
0
Former Member
Jul 28, 2006 at 07:05 PM

date calculation formula

100 Views

Hi Experts,

I need to do a date calculation in one of my programs.

For eg:

data: l_date1 like mch1-fvdt1,

l_maxlz like marc-maxlz,

l_date2 like mch1-vfdat.

the l_date1 and l_date2 are in DATES Format (mmddyyyy)

and l_maxlz is in MONTHS (eg: 12, 14, 20, 24).

i have to add <b>"l_date1" + "l_maxlz"</b> and store it in <b>"l_date2".</b>

Eg: 12/31/2006 + 30 = 06/31/2009

Plz suggest me the formula for calculation.

thnx for the help.