DirectoryInfo.CreationTime
using System; using System.IO; class MainClass { public static void Main(string[] args) { FileInfo file = new FileInfo("c:\\test.txt"); // Display directory information. DirectoryInfo dir = file.Directory; if (dir.Exists) { Console.Write("Directory created: "); Console.WriteLine(dir.CreationTime.ToString()); Console.Write("Directory last updated: "); Console.WriteLine(dir.LastWriteTime.ToString()); Console.Write("Directory last accessed: "); Console.WriteLine(dir.LastAccessTime.ToString()); } } }