Calculate days between 2 dates goes wrong

I need to know how I can find the difference in days between 2 dates. These 2 trials don't work :


Example :
bush_replace=26/06/2021
brush_start=11/03/2021
brush_replace - brush_start=106 = main_duration
I don't now how many time objects I would need, although I don't need to know the now moment in this case.
the 2 dates are correctly defined, thanks to my check at Label3.text.

Try like this:

You are feeding the duration block with strings not instants!

I found a solution, but I have to start then from date format MM/dd/YYYY:


I'll find a solution for that later.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.