Hi,
just fill the client time zone in a hidden field.
it is the easiest way.
something like this:
Note:you can use now.toUTCString() or any thing else. but to be honest I have not used "toUTCString" before!:confused:
<script>
function GetDate()
{
var now = new Date();
var monthnumber = now.getMonth();
var monthday = now.getDate();
var year = now.getYear();
monthnumber ++;
var sMonth=monthnumber.toString();
var sDay=monthday.toString();
if (monthnumber<10) sMonth ="0" + sMonth;
if (sDay<10) sDay ="0" +sDay;
return year + "/" + sMonth + "/" + sDay;
}
document.getElementById("hdnTime").value=GetDate();
</script>
<input id="hdnTime" type="hidden" value="" />
you can also use xmlhttp to send the result to the server if you want not to refresh your page.