VBScript Month Function
The Month function returns a number between 1 and 12 that represents the month of the specified date.
Syntax
Month(date)
Example
<!DOCTYPE html>
<html>
<body>
<script language = "vbscript" type = "text/vbscript">
document.write(Month("2013-06-30"))
</script>
</body>
</html>
When you save it as .html and execute it in Internet Explorer, then the above script will produce the following result −
6
vbscript_date.htm
Advertisements