Posted on 2010-03-10 17:34
疯狂水车 阅读(207)
评论(0) 编辑 收藏 引用 所属分类:
Javascript技巧
<%@ LANGUAGE="VBSCRIPT" %>
<SCRIPT Language="JavaScript" Runat="Server">
function getTimeZone( )
{
return ( (new Date()).getTimezoneOffset() )
}
</SCRIPT>
<%
Dim offset
offset = getTimeZone()
curGMTDate=DateAdd("n",offset,Now())
Response.Write "And the calculated GMT time is " & curGMTDate & "<P>"
%>