Set endDate in DateTime Interval

Markisio
Contributor
October 17, 2023

Hi there

 

I thought this is easy :) I have a form with these fields

 

lengthDays --> Numeric 

durationDate --> DateTime Interval 

a rule to perform the following

durationDate.endDate=([entry.durationDate.startDate.add(86400000*[entry.lengthDays])])

 

however for some reason the endDate of durationDate doesn't get populated, not sure why. I am sure its something silly, it works if I change the duration date into 2 fields ( start and end date) 

 

am I loosing it :) please help, thanks 

 

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 17, 2023

Hi @Markisio 

This is one field with start and end dates and expects the value format as this: startDateTimestamp-endDateTimestamp, so you do this as follows

Screenshot 2023-10-18 at 09.36.11.png

durationDate=[entry.durationDate.startDate]-[entry.durationDate.startDate.add(86400000*[entry.lengthDays])]

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events