There is nice function in .NET Directory.GetFiles, it\'s simple to use it when I need to get all files from directory.
Directory.GetFiles(\"c:\\\\Files\")
<
You need to get the directoryinfo for the file
public List getTodaysFiles(String folderPath)
{
List todaysFiles = new List();
foreach (String file in Directory.GetFiles(folderPath))
{
DirectoryInfo di = new DirectoryInfo(file);
if (di.CreationTime.ToShortDateString().Equals(DateTime.Now.ToShortDateString()))
todaysFiles.Add(file);
}
return todaysFiles;
}