Determines the ordinal (day number, in the year) of the first day of the month in which a given date falls.
firstDayOfMonth(date)
returns numeric
date.firstDayOfMonth()
Name | Type | Required | Default | Description |
---|---|---|---|---|
date | date | Yes | Date or date/time object. |
To determine the ordinal (day number, in the year).
<cfset Date = CreateDate(2012, 12, 12)>
<cfset result = firstDayOfMonth(Date)>
<cfoutput>#result#</cfoutput>