Sairam Soham

Sairam Soham

  • NA
  • 47
  • 28.3k

Retrieve files from a folders for the specified datetime ran

Sep 26 2014 8:55 AM

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)