|
FirstDayOfMonth
DescriptionDetermines
the ordinal (day number, in the year) of the first day of the month
in which a given date falls.
ReturnsA number
that corresponds to a day-number in a year.
Function syntaxFirstDayOfMonth(date)
Parameters
Parameter
|
Description
|
date
|
Date/time object, in the range 100 AD–9999
AD.
|
UsageWhen passing
a date/time value as a string, enclose it in quotation marks. Otherwise,
it is interpreted as a number representation of a date/time object.
Example<h3>FirstDayOfMonth Example</h3>
<cfoutput>
The first day of #MonthAsString(Month(Now()))#, #Year(Now())# was
day #FirstDayOfMonth(Now())# of the year.
</cfoutput>
|