How to fix date conversion error?

You are both right. I didn’t check that the code was applying the dates of the current year and that’s why I had this issue.

I solved it by replacing indeed 2024.

Thank you for your time and comments.

1 Like