Getting date/time from server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Max Sandman

    #1

    Getting date/time from server

    I need to make sure that the date/time that's displayed on an internal
    webpage is using the "official" server time and not the user's
    workstation time. But I can't find out how to get it. Surely there's a
    way?

    sandman

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Jon Skeet

    #2
    Re: Getting date/time from server

    Max Sandman <sandman_max@ya hoo.com> wrote:[color=blue]
    > I need to make sure that the date/time that's displayed on an internal
    > webpage is using the "official" server time and not the user's
    > workstation time. But I can't find out how to get it. Surely there's a
    > way?[/color]

    If you just use DateTime.Now executing at the server, you'll find the
    server's time.

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    Working...