<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<%dim i as string = Now()
response.write (i)%>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<%dim i as string = Now()
response.write (i)%>
</body>
</html>
也可以直接在页面中写。
<script>
var d = new Date();
var y = d.getFullYear();
var m = d.getMonth()+1;
var day = d.getDay();
</script>
将y,m,day拼起来就是日期了