Skip to content

How to take dateTime of the web server in our window application

Mandar Deshpande

Asked Sep 10, 2009, 9:50 PM EDTSolved
Share
LinkedInX
hi
I want to take date and time of my web server in my window application.
how can I take it?
 

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Niradhip Chakraborty
    ✓ Accepted answer0
    In that case you can use Getdate(). getdate() in SQL Server as a Start or End date for a sql statement or Stored Procedure. The getdate() function in SQL Server returns both the current date and time.
    0
  • 0
    hi
    thanks,
    but my application running on client pc and I want to fetch date and time of my server computer in that application and after that i am updating database on server pc...
    I am new, so I am getting problem to fetch server pc date time..
    0
  • 0
    thanx .........!
    it's working!!! :-)
    0
  • 2 short replies
    • Niradhip Chakraborty
      0
      Use
      DateTime.Now
      0
    • Niradhip Chakraborty
      0
      You are welcome
      0