Description
Sets the hour on the Date object. This is a member function called by the Date object.
Returns
DateObject
History
New in Adobe ColdFusion (2016 release)
Category
Syntax
Description
Sets the hour on the Date object. This is a member function called by the Date object.
Returns
DateObject
History
New in Adobe ColdFusion (2016 release)
Category
Syntax
setHour (hour)
Parameter | Description |
hour | Required. An integer representing the hour. Expected values are 0-23, but other values are allowed:
|
<cfscript> myDate=now(); WriteOutput(myDate.setHour(18)); </cfscript>