VBScript:Date功能

目录

函数返回当前系统日期。

语法

date()

<!DOCTYPE html>
<html>
   <body>
      <script language = "vbscript" type = "text/vbscript">
         a = date()
         document.write("The Value of a : " & a)
       
      </script>
   </body>
</html>

将其另存为.html并在浏览器中执行时,上述脚本将产生以下结果:

The Value of a : 19/07/2013

作者:terry,如若转载,请注明出处:https://www.web176.com/vbscript/1134.html

(0)
打赏 支付宝 支付宝 微信 微信
terryterry
上一篇 2020年12月7日 下午3:11
下一篇 2020年12月7日 下午3:34

相关推荐

发表回复

登录后才能评论