Get creation date and time of a directory

Posted by Rajni.Shekhar under ASP.NET category on | Points: 40 | Views : 1467
use Directory.GetCreationTime to get creation date and time of a directory.

using system.IO;
Response.Write("The directory was created successfully at " + Directory.GetCreationTime(@"C\Dir")); \\any folder name or directory name which exists

Comments or Responses

Login to post response