C# program to get file creation time

Program

using System;
using System.IO;

namespace ConsoleApplication1
{
	class Program
	{
		static void Main()
		{
			DateTime D1 =  File.GetCreationTime("XYZ.TXT");
			Console.WriteLine("File Creation Time : "+D1.ToString());
		}
	}
}

Output

File Creation Time : 10/27/2017 6:53:39 PM

Leave a Comment

error: Alert: Content is protected!!