DOCUMENT / 文档

VBScript Month 函数

VBScript Month 函数

VBScript Month 函数

VBScript 参考手册 完整的 VBScript 参考手册

Month 函数返回表示年的月份的数字,介于 1 到 12 之间。

语法

Month(date)
参数描述
date必需。任何表示日期的表达式。

实例

实例

<script type="text/vbscript">

 document.write(Month("2010-02-16"))

 </script>

以上实例输出结果:

2
尝试一下 »

VBScript 参考手册 完整的 VBScript 参考手册