VBScript Date 函数
该函数返回当前系统日期。
语法
date()
示例
<!DOCTYPE html>
<html>
<body>
<script language = "vbscript" type = "text/vbscript">
a = date()
document.write("The Value of a : " & a)
</script>
</body>
</html>
当您将其另存为 .html 并在 Internet Explorer 中执行时,上述脚本将产生以下结果 −
The Value of a : 19/07/2013

vbscript_date.html