VBScript MonthFunction


VBScript 参考手册Complete VBScript Reference Manual

The Month function returns a number representing the month of the year, between 1 and 12.

Syntax

Month(date)

Parameter Description
date Required. Any expression that represents a date.

Example

Example

<script type="text/vbscript">

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

</script>

The output of the above example is:

2

Try it Yourself »


VBScript 参考手册Complete VBScript Reference Manual Other Extensions