Search w3schools.com:

SHARE THIS PAGE

VBScript Month Function


VBScript Reference Complete VBScript Reference

The Month function returns a number between 1 and 12 that represents the month of the year.

Syntax

Month(date)

Parameter Description
date Required. Any expression that can represent a date

Example

Example

<script type="text/vbscript">

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

</script>

The output of the code above will be:

2

Try it yourself »


VBScript Reference Complete VBScript Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]