How can I calculate and check for age? | XM Community
Solved

How can I calculate and check for age?

  • 14 January 2019
  • 1 reply
  • 275 views

Hi to everybody,
I never used Javascript but I think I will need it here.
Briefly, I'm going to ask in a survey the date of the test and the birthday and then what I would like to do is:
* calculate the age in years, month and day at the date of the test;
* check if the age is between age1 and age2 as needed;
* put a warning that says that the person should be between age1 and age2.

Is it possible?
icon

Best answer by bstrahin 14 January 2019, 14:33

View original

1 reply

Userlevel 7
Badge +38
This post might give you a start and some users to reach out to:

https://www.qualtrics.com/community/discussion/1397/javascript-to-calculate-users-age-based-on-dob-check-age-eligibility-provide-validation-alert

Leave a Reply