Name

DayOfWeek

Synopsis

                  DayOfWeek(date)

Returns the day of the week for a given date as a number between 1 (Sunday) and 7 (Saturday). Note that ColdFusion uses Sunday as the first day of the week while ISO uses Monday. The value supplied for date must be in the range AD 100-9999. For information on how ColdFusion MX handles two-digit years, see CreateDate( ). Example:

<cfoutput>#DayOfWeek(Now( ))#</cfoutput>

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.