ADO DOT NET Posted July 28, 2007 Posted July 28, 2007 Hi, The Now function returns the current date and time. But it's from system clock, so if user changes the date and time, Now function will return invalid info. To solve this problem, I need to get the correct date and time from an internet server, but don't know how? Any ideas? Thanks. Quote
Leaders snarfblam Posted July 28, 2007 Leaders Posted July 28, 2007 Would this help? Connecting To A Network Time Server It's in C#, but even if you program in VB it should be easy to translate. Quote [sIGPIC]e[/sIGPIC]
ADO DOT NET Posted July 28, 2007 Author Posted July 28, 2007 Hi Marble Eater:) Thanks for your great help. Just one thing I cannot change the server name to either time.windows.com or time.nist.gov. If I change, it won't work!:( You know why? Quote
Leaders snarfblam Posted July 31, 2007 Leaders Posted July 31, 2007 Did you use the correct port? The example used port 13. Most time servers use port 123. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.