Gets the current hour of the day.
Ordinal value of the hour, in the range 0-23.
Hour(date)
<cfscript>
curdatetime = now();
curhour = hour(curdatetime)
writeOutput("The current hour is " & curhour & "<br/>");
</cfscript>
Output
The current hour is 5
Sign in to your account