I have this code that lists all the subdirectories in a folder.
string path = @"C:\Temp\MyFolder";
DirectoryInfo dir_place = new DirectoryInfo(path);
DirectoryInfo[] directories = dir_place.GetDirectories();
foreach (var directory in directories)
{
listBox.Items.Add(directory.Name);
}
How do I list only directories created based on a date range. Basically, I pick a start date and an end date WPF?
Jignesh KumarPosted Apr 7, 2023, 7:38 AM
Hello,
You ca try below one,
Amit MohantyPosted Apr 7, 2023, 5:29 AM
Naimish MakwanaPosted Apr 7, 2023, 5:08 AM
Try below code:
Thanks
Naimish Makwana