Start a conversation

Calculations with date and time

  • Calculations with Number & Date Field

    The number & date field allows a user to store a number value alongside a date. This field gets saved as a semi-colon separated string, e.g. 4;14-09-2020. To be able to perform calculations with these...

  • Check if the last visit date matches the end of study date

    The calculation below allows to check all previous visit dates and compare the date of the last visit with the date of the end of the study. If the last visit date matches the end of study date, the c...

  • Calculate the duration using time fields

    To calculate the total duration of the several time variables and output the duration in hours and minutes, use the following calculation template: var time1 = moment.duration('{time_var1}').asMinutes...

  • Adding today's date

    If you need to retrieve and display today's date, there are two ways of doing this: 1) Using JavaScript in-built function to get the current date: var d = new Date(); var datestring = d.getDate() + - ...