Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Add 15 days to input date to get 2nd date

Avatar

Level 1

I've tried several different ways of adding 15 days to an input date in order to generate a second date, but none have worked. I have the field DueDate and need to generate a LateDate 15 days after the DueDate. I want both dates to display as M/D/YY. Any help would be appreciated.

I'm using LiveCycle ver.8.2.

2 Replies

Avatar

Employee

This forum is for the Adobe FormsCentral (formscentral.adobe.com) which is a service that allows you to create, collect and analyze data using an online web form. You should ask PDF/Designer related form questions in the LiveCycle Designer forum:  http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_designer_es

I'll move your post to that forum so you don't need to retype it. They can help you out...

Randy

Avatar

Level 10

Hi,

it the layoutReady:Event of the second Date field add this script - It's FormCalc not Javascript.

$ = Num2Date(Date2Num(DueDate.formattedValue, "M.D.YY") + 15, "M.D.YY")