I am fetching 2 dates from web application and storing it in a variable.
- “NOC Valid From” date is stored in “validFrom” variable.
- “NOC Valid to” date is stored in “validTo” variable.
- validFrom value = 13-Oct-2022
- validTo value = 12-Oct-2023
- I want to verify difference between above 2 dates is 1 year.