468,457 Members | 1,555 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,457 developers. It's quick & easy.

How to get the server system datetime ?

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
Nov 20 '05 #1
4 6789
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" wrote:
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

Nov 20 '05 #2
* "Agnes" <ag***@dynamictech.com.hk> scripsit:
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()
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
Hi Herfried,
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()
///

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
Nov 20 '05 #4
* "Cor Ligthert" <no**********@planet.nl> scripsit:
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()
///

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>.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Darren Clark | last post: by
5 posts views Thread by Abdolhosein Vakilzadeh Ebrahimi | last post: by
2 posts views Thread by =?Utf-8?B?UHVyZSBIZWFydA==?= | last post: by
4 posts views Thread by PeteOlcott | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by subhajit12345 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.