User Guide
538 Chapter 3: ColdFusion Functions
<li>Formatted with CreateODBCDate and DateFormat:
#DateFormat(CreateODBCDate(yourDate), "mmmm d, yyyy")#
<li>Formatted with CreateODBCDateTime and DateFormat:
#DateFormat(CreateODBCDateTime(yourDate), "d/m/yy")#
</ul>
</cfoutput>
</cfif>
<CFFORM ACTION="createodbcdatetime.cfm" METHOD="POST">
<p>Enter a year, month and day, as integers:
<pre>
Year <CFINPUT
TYPE="Text" NAME="year" VALUE="1998" VALIDATE="integer"
REQUIRED="Yes">
Month<cfinput
TYPE="Text" NAME="month" VALUE="6" RANGE="1,12"
MESSAGE="Enter a month (1-12)" VALIDATE="integer" REQUIRED="Yes">
Day <cfinput type="text" name="day" value="8" range="1,31"
MESSAGE="Enter a day of the month (1-31)" VALIDATE="integer"
REQUIRED="Yes">
Hour <cfinput type="text" name="hour" value="16" range="0,23"
MESSAGE="You must enter an hour (0-23)" VALIDATE="integer"
REQUIRED="Yes">
Minute<cfinput type="text" name="minute" value="12" range="0,59"
MESSAGE="You must enter a minute value (0-59)" VALIDATE="integer"
REQUIRED="Yes">
Second<cfinput type="text" name="second" value="0" range="0,59"
MESSAGE="You must enter a seconds value (0-59)" VALIDATE="integer"
REQUIRED="Yes">
</pre>
<p><INPUT TYPE="Submit" NAME=""> <INPUT TYPE="RESET">
</cfform>