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.
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