Live Chat Icon For mobile
Live Chat Icon

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));

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.