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>
ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt183.htm
Comments
tctmcg said on Nov 26, 2002 at 5:41 PM : hlichtin said on Mar 13, 2003 at 10:12 AM : cartman29 said on Oct 16, 2003 at 10:21 AM : SEQ said on Nov 2, 2003 at 12:53 PM : conradw said on Jun 1, 2005 at 11:01 AM : No screen name said on Sep 26, 2006 at 4:18 PM :