I'm using Acrobat X Pro and looking for a date calculation script based on text fields. I'm really new at this but I can't seem to find a way.
My fields:
day1 (date of an event in yyyymmdd format, always filled)
day2 (date of a possible event in yyyymmdd format, can be left blank)
day3 (Result of the calculation)
Now what I want is:
If day2 is left blank, then day3 = day1 + 7 days
If day2 is filled, then day3 = day2 + 6 months
day1 -> if day2 is blank
day3 = day1 + 7 days
else
day3 = day2 + 6 months
day2 -> if day2 is blank
day3 = day1 + 7 days
else
day3 = day2 + 6 months
Is there any easier method? What would the correct synthax be keeping the yyyymmdd format?