w3schools    w3Schools
Search :
   
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About
ADVERTISEMENTS

XML Certification
Download XML editor
Custom Programming
 
Table of contents
VBScript Tutorial
VB HOME
VB Introduction
VB How to
VB Where to
VB Variables
VB Procedures
VB Conditional
VB Looping
VB Summary

Examples
VB Examples

References
VB Functions
VB Keywords

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

Browse Tutorials
 

VBScript MonthName Function


VBScript Reference Complete VBScript Reference

The MonthName function returns the name of the specified month.

Syntax

MonthName(month[,abbreviate])

Parameter Description
month Required. Specifies the number of the month (January is 1, February is 2, etc.)
abbreviate Optional. A Boolean value that indicates if the month name is to be abbreviated. Default is False

Example 1

document.write(MonthName(8))
Output:
August

Example 2

document.write(MonthName(8,true))
Output:
Aug


VBScript Reference Complete VBScript Reference