Get the Date and Time when a file was last modified

Hi,

I really need some help! :slight_smile:

I’m using C#. I have an excel file saved in a folder on a network. I need to get the date and time when the file was last saved/modified. After watching some tutorials online, I’m SO confused! Is there an easy way to do this? Are there any particular datatypes I have to use?

Thanks! :slightly_smiling_face:

Hi,

How about using ForEachFileInFolder activity and LastWriteTime property as the following?

lastModifiedDate = CurrentFile.LastWriteTime

Regards,

That’s awesome!! Thank you!! :smiley:

1 Like

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