How to change day names of a Date Field in ColdFusion

cfinput - daynames in input type datefield

cfinputTypeDateFieldDayNames.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfinput type datefield: how to use daynames in input type datefield</title>
</head>

<body>
<h2 style="color:Crimson; font-style:italic">cfinput type datefield example: how to use daynames attribute</h2>
<hr width="600" align="left" color="Crimson" />
<br />

<cfif IsDefined("Form.SubmitDate")>
 <cfoutput>
  <h3 style="color:OrangeRed;">
      Your Joining date is: : #DateFormat(Form.DateChooser)#
  </h3>
    </cfoutput>
</cfif>

<cfform name="InputTypedateFieldTest" method="post" format="html">
 <table border="1" cellpadding="5" cellspacing="0" bordercolor="DeepPink">
     <tr>
         <td colspan="2" bgcolor="DeepPink" style="color:Snow; font-size:large" align="center">
             Joining Date Submit Form
            </td>
        </tr>
     <tr valign="top">
         <td style="color:RosyBrown; font-weight:bold">
             Your Joining Date?
            </td>
         <td height="250">
             <cfinput 
                 name="DateChooser"
                    type="datefield"
                    validate="date"
                    daynames="SU,M,TU,W,TH,F,SA"
                    >
            </td>
        </tr>
     <tr>
         <td colspan="2" align="right">
       <cfinput name="SubmitDate" type="submit" value="Submit">
            </td>
        </tr>
    </table>
</cfform>
</body>
</html>





More ColdFusion examples