<script type="text/javascript"> window.onload = function () { var newdate = new Date(); var hdnfield = document.getElementById('<%=hdnClientDate.ClientID%>'); hdnfield.value = newdate.toLocaleString(); } </script>
<asp:HiddenField ID="hdnClientDate" runat="server" OnValueChanged="hdnClientDate_OnInit" />
protected void hdnClientDate_OnInit(object sender, EventArgs e) { Session["hdnClientDate"] = hdnClientDate.Value; }// saving the time in session
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)