How to get the day of the week in a Date in ColdFusion

DayOfWeek() - get the day of the week in a Date

DayOfWeek.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DayOfWeek function example: how to get the day of the week in a Date</title>
</head>

<body>
<h2 style="color:hotpink">DayOfWeek Function Example</h2>

<cfset ToDay=DateFormat(Now())>

<cfoutput>
<b>
Today: #Today#
<br />
ToDay[day of the week]: #DayOfWeek(ToDay)#
</b>
</cfoutput>
</body>
</html>






More ColdFusion examples