dd

VBScript Now 函数


Now 函数根据计算机系统的日期和时间设置返回当前的日期和时间。

语法

Now

实例

实例(仅适用于 IE)

<script type="text/vbscript">

document.write("The current system date and time is: ")
document.write(Now)

</script>

以上实例输出结果:

document.write("The current system date and time is: ") document.write(Now)