Vbscript-now-function
提供:Dev Guides
VBScript Now関数
関数は、現在のシステムの日付と時刻を返します。
構文
Now()
例
<!DOCTYPE html>
<html>
<body>
<script language = "vbscript" type = "text/vbscript">
a = Now()
document.write("The Value of a : " & a)
</script>
</body>
</html>
lとして保存してInternet Explorerで実行すると、上記のスクリプトは次の結果を生成します-
The Value of a : 19/07/2013 3:04:09 PM