Determines the ordinal (day number, in the year) of the first day of the month in which a given date falls.
A number corresponding to a day-number in a year.
FirstDayOfMonth(date)
Day,
DayOfWeek,
DayOfWeekAsString,
DayOfYear,
DaysInMonth,
DaysInYear
Parameter | Description |
---|---|
date |
|
When passing a date/time value as a string, you must enclose it in quotation marks. Otherwise, it is interpreted as a number representation of a date/time object.
<h3>FirstDayOfMonth Example</h3> <cfoutput> The first day of #MonthAsString(Month(Now()))#, #Year(Now())# was a #DayOfWeekAsString(DayOfWeek(FirstDayOfMonth(Now())))#, day #FirstDayOfMonth(Now())# of the year. </cfoutput>