Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this demo we show how to work with dates and calculate an interval between 2 given dates

ConfiForms Form Definition
formNamemyform

d1d1datetrue

d2d2datetrue

d2.timestamp:<[entry.d1.timestamp]Date 2 shall be after the date 1Validation rule

trueINLINE


...

ConfiForms TableView
formNamemyform

d1

d2



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
fieldNameinterval:(([entry.d2.timestamp] - [entry.d1.timestamp])/86400000)
formNamemyform