1
Answer

Retrieve files from a folders for the specified datetime ran

Sairam Soham

Sairam Soham

10y
570
1

I am able to retrieve all the files from the specified folder using following line.

string[] filePaths = Directory.GetFiles(@"c:\MyDir\");


On UI I will have 2 parameters --

Startdate and Starttime

EndDate and Endtime

I want to retrieve only those files where Date Modified of files (in the windows explorer) is in between startdatetime and enddatetime

Any clue?

 


Answers (1)