Whatever message this page gives is out now! Go check it out!

MonthAsString

Last update:
May 18, 2026

Description

Determines the name of the month that corresponds to month_number.

Returns

A string; the name of the specified month, in the current locale.
History
ColdFusion (2018 release): Changed Parameter name month_number to month.

Category

Function syntax

MonthAsString(month [, locale])

See also

History

  • ColdFusion (2018 release): Changed parameter name month_number to month.
  • ColdFusion 8: Added the locale parameter.

Parameters

ParameterDescription
month
An integer in the range 1 - 12.
locale
Locale to use instead of the locale of the page when processing the function

Example

<cfscript>
    myLocale=getLocale()
    myMonth=5;
    monthAsString=monthAsString(myMonth,myLocale)
    writeOutput(monthAsString)
</cfscript>
Output
May

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page