i've seen a few older answers to this question but does anyone have an easy method for calculating the difference between dates using answers (from a date picker) to questions earlier in a survey for either an embedded field or to prepopulate the answer to a single text box entry field?
thanks!
Page 1 / 1
You could use JavaScript. Use something like this with an event trigger such as onLoad, etc.:
`var startDate = new Date();
// Do your operations
var endDate = new Date();
var seconds = (endDate.getTime() - startDate.getTime()) / 1000;`
`var startDate = new Date();
// Do your operations
var endDate = new Date();
var seconds = (endDate.getTime() - startDate.getTime()) / 1000;`
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.