How to get the server system datetime ?

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

I got an window server 2000.
How can I get the server system date and systemtime , and put it into a
textbox ??
Thanks a lot
 
Are you doing a Web app or a win app. Is the application running on the machine from which you have to get the date and time info. If so use Now() to get the information.

Rgds,
Anand M
VB.NET MVP
http://www.dotnetindia.com
 
* "Agnes said:
I got an window server 2000.
How can I get the server system date and systemtime , and put it into a
textbox ??

\\\
Me.TextBox1.Text = DateTime.Now.ToString()
///
 
Hi Herfried,
\\\
Me.TextBox1.Text = DateTime.Now.ToString()
///
Are you sure this is the right answer, the server itself would not be the
server from the server but the system.

Asked is the Now from the Server.

I do not know the answer however I am sure you do?

I think that I would fullfil this with remoting or a webservice however
probably you know a direct answer.

:-)

Cor
 
* "Cor Ligthert said:
Are you sure this is the right answer, the server itself would not be the
server from the server but the system.

Asked is the Now from the Server.

I do not know the answer however I am sure you do?

I assumed that the OP is running the app on the server.
I think that I would fullfil this with remoting or a webservice however
probably you know a direct answer.

I am not familiar with that, but if Windows Server provides NTP, it
should be possible:
<URL:http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1305.html>.
 
Back
Top