Calculate Days

0
Hi, I would like to calculate days between check in date and check out date, How can I do it? Do I need a microflow or something else. For example – 01/04/2022 to 04/04/2022, in days you are staying = 4 days.
asked
2 answers
0

See the documentation here: https://docs.mendix.com/refguide/between-date-function-calls/

Regards,

Ronald

 

answered
0

Take a look at the built in daysBetween function. It returns a decimal, so you will have to convert this to an integer if you just want the number of whole days.

https://docs.mendix.com/refguide/between-date-function-calls/#6-daysbetween

answered