Parameter
Description
Sets the month 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
setMonth (month)
|
Parameter |
Description |
|
month |
Required. An integer representing the month. |
<cfscript>
myDate=now();
WriteOutput(myDate.setMonth(10));
</cfscript>
Sign in to your account