Send file by date of today

Hello everybody ,
I only want to send my error files from today?
How do I do that…

Variable for error file is OK
fileError=system.io.directory.getfiles(ordnerPfad,“Error.log”)
E-mail is sent with all errors via outlok with AttachmentsCollection: fileError

But I only need files from today.

I’m new to the forum, so please move the topic to the correct category.

Hi @Vitalis
Welcome to the UiPath Community!

This discussion will help you find the files that were created on a certain date (in your case, today).

I hope this solves your problem.

Happy automation!

1 Like

Unfortunately I can’t get any further …

System.io.DirectoryInfo(“ordnerPfad”).GetFiles(“fileError”).Where(CreationTime.Date=now.Date).