In this demo we show how to work with dates and calculate an interval between 2 given dates
ConfiForms Form Definition |
---|
|
d1d1datetrue d2d2datetrue d2.timestamp:<[entry.d1.timestamp]Date 2 shall be after the date 1Validation rule trueINLINE
|
...
Dates with interval countedcalculated (In TableViewMerger)
ConfiForms TableView Merger |
---|
trueid d1 d2 interval:(([entry.d2.timestamp] - [entry.d1.timestamp])/86400000) myform
|
Same calculation using ValueView
ConfiForms ValueView |
---|
fieldName | interval:(([entry.d2.timestamp] - [entry.d1.timestamp])/86400000) |
---|
formName | myform |
---|
|