Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Creating an End Date 90 days from the start date

Avatar

Former Community Member
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!
4 Replies

Avatar

Former Community Member
Are these fields on a form or part of a process deadline? Can you explain what End_Date means to you.

Avatar

Former Community Member
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.

Avatar

Former Community Member
send me the form,will fix it for you

thanks

girish

mergeandfuse@gmail.com

Avatar

Former Community Member
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