Filter folder

I want to get files from folder but filter current date and time

Hi,

Can you elaborate with some examples?

Regards,

Suppose vishal is folder in that folder so many excel file but i want to only current date time excel file

Hi @vishal22landge

Use for each and give directory.getfiles(yourfolderpath,"**.xlsx") and Inside loop put an if condition give item.tostring.contains(now.tostring(“dd-MM-yyyy”),do your process in then part.

Give the current date format in contains method (instead of this dd-MM-yyyy give your date format in filename)

Thanks