Participant
March 27, 2022
Question
Need help with date scripts from 3 fields
- March 27, 2022
- 1 reply
- 667 views
Hi community, I have the following issue.
I have a form where there is 3 fields for the date (expressed as week ending)
DD
MM
YY
then I have 5 other fields where I need the date to be displayed as monday to friday dates.
I used to use this script where the original date was as one field and it worked nicely (example is for the monday date hence the "-4")
var date= util.scand("dd/mm/yyyy", this.getField("Week ending").value);
date.setDate(date.getDate()-4)
event.value=util.printd("dd/mm/yyyy",date)
How can i modify this to work with the 3 Fields?
Partial screen shot attached.
thanks