Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Todays Date

Status
Not open for further replies.

Error7

Programmer
Jul 5, 2002
656
GB
Does anybody know how I can read/download todays date from a reliable source using the webbrowser or iNet control.

I want to be sure that our main server always has the correct date.

[gray]Experience is something you don't get until just after you need it.[/gray]
 
There are several time services available. One of them is the National Institute of Standards and Technology (NIST) and you can find out more here
 

Maybe you can pick it up from here:

Code:
// BEGIN - NIST DYNAMIC DATA /////////////////////////////


var NISTSendTime = new Date( "[blue]November 16, 2010[/blue] 13:16:06");
var QueryTimeZone = -6;
var QueryTimeZoneOffsetMin = -360
var QueryTimeZoneName = "Central";
var QueryDSTString = "Standard Time";

// END - NIST DYNAMIC DATA ////////////////////////////////////

Unless you are NOT in USA....

Have fun.

---- Andy
 
Current windows OS already has a internet time synchronizer. Maybe you just need to check the box.

David Paulson

 
Perhaps I should have mentioned we're running XP in UK

[gray]Experience is something you don't get until just after you need it.[/gray]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top