VBScript:Month()函数

目录

Month函数返回1到12之间的数字,代表指定日期的月份。

语法

Month(date) 

<!DOCTYPE html>
<html>
   <body>
      <script language = "vbscript" type = "text/vbscript">
         document.write(Month("2020-06-30"))
       
      </script>
   </body>
</html>

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

6

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

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

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注