Find the Last Modified Date of a Web Page

Find the Last Modified Date of a Web Page

Microsoft’s Internet Transfer Control (MSInet.ocx) is a great tool to use to automate the Web. However, how do you know you’re looking at an updated version of a Web page? Use OpenURL to navigate to a page, then use the GetHeader function to retrieve the entire HTML header, from which you can get the last modified date:

 Dim x As StringInet1.OpenURL ("")x = Inet1.GetHeaderDebug.Print xMsgBox Mid$(x, InStr(1, x, "Date:") + _	Len("Date:"), 30)Or you can request the desired header: "Date" in this case:Inet1.OpenURL ("")MsgBox Inet1.GetHeader("Date")

See also - an AI reverse image search platform

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist