Get Current time of Server in MVC3 Controller
How can I get Current time of Server in MVC3 Controller?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 4, 2012, 9:45 PM EST
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 Sejpal75 reputationPosted Jan 4, 2012, 10:34 PM EST