How to calculate days between two dates

Use this:

This would be the number of days elapsed since the beginning of the year.
If you have two specific dates, you can turn them both into instants and use them as start and stop for a duration (which is expressed in milliseconds) that can then be converted to days.
(CalibrateClock is just how I call one of the clock I use in one of my app; you have complete freedom how you can call your components)

8 Likes