HowTo subtract date properties with a number expression?

After you have seen this HowTo video and read this article you will know how to subtract date properties with number expressions. For example, to count the number of days between a start and an end date.

Step 01
Create two properties with the kind as 'Date'. In this HowTo video we've used start date and end date.

Step 02
Create an extra number expression property to subtract the two date properties with.

Step 03
Complete the expression and insert the two date properties as variables in the expression definition.

Step 04
Add the number expression property to the form and check the expression outcome.

Step 05
A number expression property always returns a whole (number) value. To have a number with decimal value, you have to change the expression property type to 'Number with decimal'. Change the property type.

Step 06
Complete the settings of the number with decimal property type.

Step 07
Check the expression outcome.

Didn’t find what you want?Ask your question on the forum!