File CreationDate

file

#1

I’m using this formula to find the creation date of one file:

new DirectoryInfo(“filepath”).CreationTime.ToString(“dd/MM/yyyy”)

BUT it’s giving mi this creation date: “01/01/1601”

I don’t know what to do :frowning:

Let me know if you know how to solve this problem.
Thank’s and bet regards.


#2

Hi! Try using new FileInfo instead of DirectoryInfo
Yeah that works. I just tried it :slight_smile:
Cheers.