SurveyToGo: TimeDiffDaysTimeDiffDays(inDate1, inDate2): returns the difference in days between two DateTime values.Aug 3, 2026Knowledge
InformationTitleSurveyToGo: TimeDiffDaysAnswerTimeDiffDays Double TimeDiffDays(DVar inDate1, DVar inDate2) Description Returns the total days difference between the 2 dates entered, where the first date entered is the later date Parameters The following is a list of parameters the functions receives ParameterTypeDescriptioninDate1DVarDate value inDate2DVarDate Value Return Type Double Example In the place where you want to tick the start time you can use the following code:Vars["Start"]=Now;This will capture the current time & date within a global variable that I called it 'Start' (Can call it whatever you like).Then, in the place you want to capture the end time & date, you should use the following code:Vars["End"]=Now;*Note: These code lines would be best written within start\end scripts.TimeDiffDays(Vars["End"],Vars["Start"]);URL NameSurveyToGo-TimeDiffDays