Month cleared calculating differences between days

Hello again...
In this image I calculate the day before the day of "Datario" which is a datepicker control.
Assuming the date is 26/08/2021, if the pattern was "dd", the result is "25": ok; but if the pattern was "dd/mm/yyyy" the result is 25/00/2021 with the value of the month cleared: why?
And how can I resolv this problem?
Thanks for your answers.

And... thanks again TIMAI2 !
Twice in one only hour.
See you.

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