Solved
How do I subtract between two dates in a survey?
I have two seperate questions in a survey that are dates. I would like to calculate the difference between these two dates as this is a component of determining a participant's eligibility. Does anyone know specific javascript code that I can utilize in order to calculate this difference and add it to the survey logic?
Best answer by MohammedAli_Rajapkar
Hi @kducharme
If you are familiar with javascript then you can implement something similar to below.
https://stackoverflow.com/questions/2609513/jquery-calculate-day-difference-in-2-date-textboxes
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

It just returns the formula. Am I not entering this in the right place?
I am using the Piped Text option to embed the Question ID into the var start parentheses. I remove the curly bracket, and then it says to remove the :. I remove that, and it says to remove the close curly bracket. It seems like it doesn't want any of the piped text for the question.