devxlogo

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 ("www.devx.com")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 ("www.devx.com")MsgBox Inet1.GetHeader("Date")

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

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