4
Add Date and Time Node Type in Math Components
complete
A
Adam Zalt
Please add the ability to choose 'Date' and 'Time' as a node type to the math components. Example use case: A user wanting to subtract one date from another in order to get the difference in time (days).

Brian Lichliter
Some updates to this thread. After a discussion with our engineering team, adding support for
date
as a data type would not alone enable users to use our existing Subtract
component to find the difference between two dates.We've discussed creating a new component specifically for finding the difference between two dates that would look something like the following. You would pass in a couple dates and set a
unit
of measure in the state
tab. The difference
would be output from the component.Dates
in this case would probably still be strings
in the near term.
Brian Lichliter
complete
Brian Lichliter
Some updates to this thread. After a discussion with our engineering team, adding support for
date
as a data type would not alone enable users to use our existing Subtract
component to find the difference between two dates.We've discussed creating a new component specifically for finding the difference between two dates that would look something like the following. You would pass in a couple dates and set a
unit
of measure in the state
tab. The difference
would be output from the component.Dates
in this case would probably still be strings
in the near term.
m
michael francois
Brian Lichliter: Would this also include days in the future? for example if we had a booking form with a check in date, for x days, we'd know from that when their checkout date was
Brian Lichliter
michael francois: Ahh yup, I'll add that to the scope of this thread.