http://rsanidad.wordpress.com/2007/09/21...
Visit the link to get your task done..
<script>
function GetClientUtcOffset()
{
var d = new Date();
document.forms[0][”UtcOffset”].value
= d.getTimezoneOffset();
}
</script>
<body onload=”GetClientUtcOffset();”>
<form id=”form1″ runat=”server”>
<input type=”hidden” runat=”server” id=”UtcOffset” />
.
.
.
In our code behind, we got the value and put it in a cookie. The alternative was to put it in a session.
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack && Request.Cookies[”utcOffset”] == null)
{
HttpCookie utcOffsetCookie =
new HttpCookie(”utcOffset”, “0″);
if (!string.IsNullOrEmpty(UtcOffset.Value))
utcOffsetCookie.Value = UtcOffset.Value;
Response.Cookies.Add(utcOffsetCookie);
}
}