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.
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.
Venkatesh EllurPosted Oct 23, 2009, 1:33 AM
Gaurish KumarPosted Oct 22, 2009, 11:52 PM
in asp.net u can get server datetime by using
Datetime.Now
and in php by using this
echo '
';
?>
Kirtan PatelPosted Oct 22, 2009, 1:12 PM
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());