この関数は、現在のシステムの日付を返します。
date()
<!DOCTYPE html> <html> <body> <script language = "vbscript" type = "text/vbscript"> a = date() document.write("The Value of a : " & a) </script> </body> </html>
lとして保存してInternet Explorerで実行すると、上記のスクリプトは次の結果を生成します-
The Value of a : 19/07/2013