VBScript Month 函数

Month 函数返回表示年的月份的数字,介于 1 到 12 之间。
语法
Month(date)
参数 | 描述 |
---|---|
date | 必需。任何表示日期的表达式。 |
实例
实例
<script type="text/vbscript">
document.write(Month("2010-02-16"))
</script>
document.write(Month("2010-02-16"))
</script>
以上实例输出结果:
2
