Highlighted

Creating an End Date 90 days from the start date

Avatar

Guest

22-09-2008

Sorry - but I'm new to using LiveCycle. I need to calculate an End_Date that is 90 days out from the Start_date. Does anyone know how to do this?

Thanks!

Replies

Highlighted
Highlighted

Avatar

Guest

23-09-2008

Thank you for asking. These fields are on a "Treatment Plan" form. The user will input the start date of the treatment plan and the end date should calculate for the user, when the treatment plan is scheduled to end - in this case, 90 days from the start date. The form that the user will complete is a pdf version of the form created in LiveCycle 8.0. Hope this helps.
Highlighted

Avatar

Guest

25-09-2008

here is the script

var current = Date2Num(Start_Date.rawValue, "MM/DD/YY")

var future = current+90

var newDate = Num2Date(future,"MM/DD/YY")

form1.#subform[0].End_Date.rawValue = newDate

You can put this script in the exit event of the startDate field