Getting date from a server

  • Thread starter Thread starter Paul Bromley
  • Start date Start date
P

Paul Bromley

I need to get the current date from a server so that I can distribute time
limited versions of my software. In the application that I was using no-one
will change the server date, so my soultion can be very simplistic. How can
I easliy obtain the server date?

Thanks

Paul Bromley
 
I may have misunderstood your question but

Datetime.Now()

Richard
 
Hi Richard,

The application will be running on a Workstation. I need to get the date
from the server on the domain or on the workgroup. The user may change the
date on his workstation to get my application to run, but they will not do
this on the server.

Thanks

Paul Bromley
 
¤ I need to get the current date from a server so that I can distribute time
¤ limited versions of my software. In the application that I was using no-one
¤ will change the server date, so my soultion can be very simplistic. How can
¤ I easliy obtain the server date?
¤

You should be able to use the NetRemoteTOD API function call:

http://codeproject.com/vb/net/NetRemoteTOD.asp


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top