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

Date and time functions

Syntax

setMonth (month)

Parameter

Parameter Description
month Required. An integer representing the month.

Example

<cfscript>
       myDate=now();
       WriteOutput(myDate.setMonth(10));
</cfscript>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy