How to get creation date of a file in c#?

Get creation date of a file in c#.

If you want to get creation date of file in c#
So,you can easily do it by follow below code:



DateTime creationTime = File.GetCreationTime(@"C:\demo.txt");
label1.Text = creationTime.ToString();

Get File Creation Time in C#,
Get File Time using c#,
How to get the correct file time in C#,
c# – How to get the datetime of a file located inside a file?

About the Author

avatar