VBScript MonthFunction
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>
document.write(Month("2010-02-16"))
</script>
The output of the above example is:
2
Try it Yourself »
Complete VBScript Reference Manual Other Extensions