How to move file from download but with today date only to another folder

how to move file from download but with today date only to another folder
please suggest

Hi @dhanu_lokhande

Give a try with the following

Directory.GetFiles("path").Where(Function(x) File.GetCreationTime(x).ToShortDateString = Today.ToShortDateString).ToArray()

or if you want to retrieve based on the last modify date you can use

Directory.GetFiles("path").Where(Function(x) File.GetLastWriteTime(x).ToShortDateString = Today.ToShortDateString).ToArray()

Regards

MoveFile.xaml (6.6 KB)

Regards,
Arivu

1 Like

Thanks a lot… its work

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.