MonthName

Convert a month number to a descriptive Month.

Syntax 
      MonthName(number [,abbreviate])

Key
   number        The month number (1-12).
 
   abbreviate    True or False, abbreviate the month i.e. Jan or January

Examples

'Display a message:

WScript.Echo MonthName(12)
> December

“April is the cruelest month, breeding lilacs out of the dead land, mixing memory and desire, stirring dull roots with spring rain” ~ T.S. Eliot

Related VBScript commands

InputBox - Prompt for user input
Equivalent PowerShell cmdlet: Get-Date -f "MMMM"


 
Copyright © 1999-2024 SS64.com
Some rights reserved