获取时区

 

C#:

TimeZoneInfo local = TimeZoneInfo.Local;
label1.Text = local.DisplayName;

 

js:

<html>
<body>

<script>
var newDate1=new Date();
alert(newDate1.getTimezoneOffset());
</script>
</body>
</html>

你可能感兴趣的:(获取时区)