How to find the excel files that were modified by one week ago

dear all,

I have some Excel files in a folder, some of these Excel files were modified within one week(depends on nowdate), some of these files were modified one week ago, how could I find the excel files were modified one week ago in this folder? anybody could give me some demo code ?  thanks a lot in advance.

Hi
Kindly have a view on this thread

Cheers @Chris-Yiwei

dear Palaniyappan,

thanks a lot for your reply. could you give me some demo .xaml code? I feel confused.

1 Like

Fine
May I know at which spot we got stuck with the above mentioned thread
@Chris-Yiwei

i could get the (write line) the modified date of each files in a folder, use File.GetLastWriteTime(path).ToString. how compare these modifed date with nowdate, if one week ago , then do next task? of course , nowdate is a variable , it depends on system time .

To check with one week ago use directly this term in the right of CONDITIONAL operator >
Now.AddDays(-7)

Cheers @Chris-Yiwei