day

Determines the day of the month, in a date.
The ordinal for the day of the month, ranging from 1 to 31.

day(date) → returns Numeric

Member Function Syntax

date.day()

day Argument Reference

date
Required

Date or date/time object.

Compatibility

ColdFusion:

Member function is available in CF 11+.

Lucee:

Member function is available in Lucee 4.5+.

Examples sample code invoking the day function


Determines the day of the month

Uses the day function to determine the day of the month

<cfset Date = CreateDate(2010, 09, 08)>
<cfset result = day(Date)>
<cfoutput>#result#</cfoutput>

Expected Result: 8


Fork me on GitHub