I want to get files from folder but filter current date and time
Can you elaborate with some examples?
Suppose vishal is folder in that folder so many excel file but i want to only current date time excel file
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)