How to get the day of the week, in a Date, as a string in ColdFusion

DayOfWeekAsString() - get the day of the week, in a Date, as a string

DayOfWeekAsString.cfm


<!DOCTYPE html>

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

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

<cfset ToDay=DateFormat(Now())>

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






More ColdFusion examples