Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript MonthName function


May 13, 2021 VBScript


Table of contents


VBScript MonthName function

The VBScript MonthName function returns a string that represents the month.


VBScript MonthName function Complete VBScript reference manual

The MonthName function returns the name of the specified month.

Grammar

MonthName(month[,abbreviate])

Parameters

parameter describe
month Required.The number of months is specified.(For example, it is 1, February 2, and so on.)
abbreviate Optional.A Boolean value indicates whether an abbreviation is named.The default is False.

Instance 1

Get the name of the 8th month:

<script type="text/vbscript">

document.write(MonthName(8))

</script>

The above example output results:

August

Try it out . . .

Instance 2

Get a shorthand for month 8:

<script type="text/vbscript">

document.write(MonthName(8,True))

</script>

The above example output results:

Aug

Try it out . . .


VBScript MonthName function Complete VBScript reference manual