How to get the month name from a month number in ColdFusion

MonthAsString() - get the month name from a month number

MonthAsString.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MonthAsString function example: how to get the month name from a month number</title>
</head>

<body>
<h2 style="color:hotpink">MonthAsString Function Example</h2>

<cfoutput>
<b>
Now: #Now()#
<br />
Month Name: #MonthAsString(Month(Now()))#
</b>
</cfoutput>
</body>
</html>





More ColdFusion examples