Results 1 to 3 of 3

Thread: Server date

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Server date

    In a client/server environment - how can I get the server date from the client machine?

    Thats if my program is running on the client machine - it connects to the server for the database, now one of the fields in the table is of "date".

    This date shd be of the "server" and not of the client.

    How do I get the date of the server?

    Thanks

  2. #2
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242
    use this statement :

    Code:
    SQL = "SELECT GetDate() as ServerDate"

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    How do I do it in Vb.

    That is not using an sql query - just plain VB - is it possible?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width