Get the previous date file

Greetings of the day…!
I need to download the file which is on or before TOday’s date. The year might also change. I tried of getting today’s data using a function and i wrote an if condition where the variable is less then or equal to today’s date but I am not getting all dates based on condition. How could I achieve this

@soumi_soumiya

Could you please show me screenshot of your expression you are using here. So that we can check and help you.

2 Likes

@soumi_soumiya When Comparing Date Values please ensure that the variables are in Date Type Format, Comparison won’t be the same when compared with String and Date variables :sweat_smile:

2 Likes

How about taking the file name applying some regex in it to extract the date value as string.
Convert this datestring to datetime variable type following which you can simply compare with todays date.