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

vbscript_date.html