I am writing some code for a program that archives files. So I need to find files which were last modified one year ago.
string[] as_Datien = Directory.GetFiles(s_Pfad, "*.*", SearchOption.AllDirectories);
for (int i_Stelle = 0; i_Stelle < as_Datien.GetLength(0); i_Stelle++)
{
}
I want to check if a file was last modified 1 year ago.