If you want the server time in Javascript use this code in Page_Load event Response.Write("<script>var tim='" + DateTime.Now.TimeOfDay.ToString() + "';</script>");
function pageLoad(){ var serverDateTime = new Date('<%= DateTime.Now.ToString() %>'); alert(serverDateTime); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)