Parameter
Description
Sets the day 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
setDay (day)
|
Parameter |
Description |
|
Day |
Required. An integer representing the day. |
<cfscript>
myDate=now();
WriteOutput(myDate.setDay(15));
</cfscript>
Output
{ts '2018-11-15 07:12:45'}
Sign in to your account