To see the date on which a web site was last modified : HttpWebResponse « Network « C# / CSharp Tutorial






using System;  
using System.Net;  
  
class MainClass {   
  public static void Main(string[] args) {  
    HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://www.java2s.com");  
  
    HttpWebResponse resp = (HttpWebResponse) req.GetResponse();  
  
    Console.WriteLine("Last modified: " + resp.LastModified);  
  
    resp.Close();  
  }  
}








33.23.HttpWebResponse
33.23.1.To see the date on which a web site was last modified