Last post May 19, 2016 08:12 AM by PatriceSc
May 19, 2016 05:29 AM|kareemva|LINK
Is there a C# code that gives me a URL webpage creation and modified date?
May 19, 2016 06:31 AM|Das.Sandeep|LINK
In stateless application, you will not get any extra information.
May 19, 2016 08:06 AM|Mikesdotnetting|LINK
You can get a file's creation and modification dates using C#:
However, a URL is not a file. It's a resource, which may sometimes be based on the content of a file, but not always. And since the data returned by most URLs is constructed dynamically on demand, a created and modified date has no meaning.
May 19, 2016 08:12 AM|PatriceSc|LINK
Not really. If you asked for a deletion before a publish you would likely get a wrong file creation date for example depending on the publishing method. Some url may not match any file etc...
IMO it would be best to explain your exact goal (I'm not even sure to get if you want this for your own site or if you want to fetch this information from some 3rd party site etc...). Usually it is useless for page and this is rather the data shown by the
page which have an update date (such as a publication date for a blog post etc...)