Get Current time of Server in MVC3 Controller
How can I get Current time of Server in MVC3 Controller?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Jan 5, 2012, 2:45 AM
One question, you want time of which server (application server or database server)?
In case application server and database server are same than you use
"DateTime.Now" for get server time.
hope this help.
Mittal SejpalPosted Jan 5, 2012, 3:34 AM