As you can see, “Date d’arrivée” is 18/09/2023, one bundle has as a date 10/09/2023 which is not later than 18/09/2023. So why does it pass the filter ?
You can see below my filter. I’ve tried many test, it was working correctly so i guess having understood how does it work. But in this case, i don’t know what happens.
Make seems to assume USA date format in most cases. However, if a date makes no sense in USA format it will then try UK/EU format (bizarreley!). So at a guess it is reading 10/09/2023 as 9th October 2023 and 18/09/2023 as 18th September 2023 (as there is no 18th month).
The only fix is to parse the date specifying the format before comparing.
I already open a topic about this and I think @Abhishek answered me a that moment. So thanks again for your help.
Indeed it worked… But I don’t know why it was working before with EU format for so many invoice that I parsed with… It worked for so many of them and those one was not working, probably it was coincidence but…
I’ll use everytime the formatDate() to be sure now to avoid this…
(btw, I did some try with variables modules and it was working so I have no clue what happened.)
Anyway, the lessons is to use always the formatDate(). Won’t forget about it…