Whatever message this page gives is out now! Go check it out!

SetDay

Last update:
May 18, 2026
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

Parameter
Description
Day
Required. An integer representing the day.

Example

<cfscript>
       myDate=now();
       WriteOutput(myDate.setDay(15));
</cfscript>
Output
{ts '2018-11-15 07:12:45'}

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page