How to find the date and time the specified file or directory was last written to

Platform: ASP.NET|Category: Files

Use namespace System.IO

VB.NET

dim path as string = Server.MapPath('page1.aspx')
Response.Write ( File.GetLastWriteTime(path))

C#

string path =Server.MapPath('page1.aspx');
Response.Write ( File.GetLastWriteTime(path));