How to get output of a function in ColdFusion

cfoutput - get output of a function

cfoutputFunction.cfm



<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfoutput tag example: how to get output of a function in coldfusion</title>
</head>

<body>
<h2 style="color:Crimson">cfoutput Tag Example: Function</h2>

<cfoutput>
 <b>Now:</b> #Now()#<br />
 <b>Today:</b> #DateFormat(Now())#<br />
 <b>Month:</b> #MonthAsString(Month(Now()))#<br />
 <b>Year:</b> #Year(Now())#<br />
</cfoutput>

</body>
</html>







More ColdFusion examples