How to get the month value from a date time object in ColdFusion

Month() - get the month value from a date time object

Month.cfm


<!DOCTYPE html>

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

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

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






More ColdFusion examples