Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript MonthName Function

Returns a string indicating the specified month.

Syntax: VBScript MonthName Function

MonthName(month[, abbreviate])

Arguments: VBScript MonthName Function

month

The numeric designation of the month. For example, January is 1, February is 2, and so on. Required.

abbreviate

A Boolean value that indicates if the month name is to be abbreviated. If omitted, the default is False, which means that the month name is not abbreviated. Optional.

Remarks: VBScript MonthName Function

The following example uses the MonthName function to return an abbreviated month name for a date expression:

Dim MyVar

MyVar = MonthName(10, True) ' MyVar contains "Oct".

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.