WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

User Samples

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Retrieve Date and Time From Time Server Webpage

 Keywords:  TIME DATE SERVER MSIE OLE COM WEB PAGE InternetExplorer.Application free.timeanddate.com

; Retrieve Date and time from time server webpage
objIE = ObjectCreate( "InternetExplorer.Application" )
objIE.Visible = @TRUE
objIE.Navigate( "http://free.timeanddate.com/clock/i1jyoa52/n263/tt0/tw0/tm3/td2/th1/tb4" )
; Wait for webpage to load
While objIE.busy || objIE.readystate == 1
      TimeDelay(0.5)
EndWhile
objt1 =  objIE.Document.getElementById( "t1" )
dt = objt1.innertext
Pause('Date/Time from free.timeanddate.com', dt)
objt1 = 0
objIE.Quit
objIE=0
Exit

Article ID:   W18144
Filename:   Retrieve Date and Time From Time Server Webpage.txt
File Created: 2010:01:29:11:23:44
Last Updated: 2010:01:29:11:23:44