cfinput - monthnames in input type datefield
DateFieldMonthNames.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 monthnames in input type datefield</title>
</head>
<body>
<h2 style="color:OrangeRed; font-style:italic">cfinput type datefield example: how to use monthnames attribute</h2>
<hr width="650" align="left" color="Orange" />
<br />
<cfif IsDefined("Form.SubmitDate")>
<cfoutput>
<h3 style="color:OrangeRed;">
Your Joining date is: #DateFormat(Form.DateChooser)#
</h3>
</cfoutput>
</cfif>
<cfform name="InputTypedateFieldMonthNamesTest" method="post" format="html">
<table border="1" cellpadding="5" cellspacing="0" bordercolor="RosyBrown">
<tr>
<td colspan="2" bgcolor="RosyBrown" 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"
monthnames="Jan,Feb,March,April, May,June,July,August,September,October,November,December"
>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<cfinput
name="SubmitDate"
type="submit"
value="Submit"
style="height:45px; width:150px; font-size:large; font-style:italic; font-weight:bold; color:OrangeRed;"
>
</td>
</tr>
</table>
</cfform>
</body>
</html>