0

I have an application in C# where I want to show the Start Date from the server... I mean the real date since the server is running....

The goal is to know if the server went down in any moment.

I´m not sure but it has to be any class in C# to be able to get this datetime from the server...

if you execute in the console "net statistics server"... you display exactly the time i mean...

any idea`?

Thanks in advance!

minoyo
  • 85
  • 1
  • 3
  • 14

1 Answers1

0
DateTime start = 
    DateTime.Now - 
    TimeSpan.FromMilliseconds(System.Environment.TickCount);
gareththegeek
  • 2,362
  • 22
  • 34