Vbscript-date-function

提供:Dev Guides
移動先:案内検索

VBScript日付関数

この関数は、現在のシステムの日付を返します。

構文

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