Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. get Time on Server

get Time on Server

Scheduled Pinned Locked Moved C#
sysadmintutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SEAGames22
    wrote on last edited by
    #1

    I have a application on client that will connect to server so i want to get Time on Server from Client. How to do that.

    P D 2 Replies Last reply
    0
    • S SEAGames22

      I have a application on client that will connect to server so i want to get Time on Server from Client. How to do that.

      P Offline
      P Offline
      pubududilena
      wrote on last edited by
      #2

      hi, If the database in the server ,You can simply run a SQL query and get time on that server computer. "SELECT getdate() as serverdatetime" If you run above query after connecting to database in the server,then You will receive the Time on the server. regards, pubudu.

      1 Reply Last reply
      0
      • S SEAGames22

        I have a application on client that will connect to server so i want to get Time on Server from Client. How to do that.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        That depends entirely on your server. What are you connecting to? A file share?, TCP port?, a server application that your wrote?, NTP service?, Web Service?, ... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups