Obtaining the server date time
I need to get the datetime from the server connected to my web page. I have used with no success,
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
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 22, 2009, 9:12 AM EDT
you need to use some server Scripting
like php or asp.net
In asp.net you can get it like
Reponse.Write(DateTime.Now.ToString());
Gaurish Kumar108 reputationPosted Oct 22, 2009, 7:52 PM EDT
in asp.net u can get server datetime by using
Datetime.Now
and in php by using this
echo '
';
?>
Venkatesh Ellur30 reputationPosted Oct 22, 2009, 9:33 PM EDT