372
</UL>
</cfoutput>
</cfif>
<cfform action = "createODBCdatetime.cfm" method = "POST">
<P>Please enter the year, month and day in integer format for
the date value you would like to view:
<PRE>
Year<cfinput type = "Text" name = "year" value = "1998"
Month<cfinput type = "Text" name = "month" value = "6" RANGE = "1,12"
Day<cfinput type = "Text" name = "day" value = "8" RANGE = "1,31"
Hour<cfinput type = "Text" name = "hour" value = "16" RANGE = "0,23"
Minute<cfinput type = "Text" name = "minute" value = "12" RANGE = "0,59"
Second<cfinput type = "Text" name = "second" value = "0" RANGE = "0,59"
</PRE>
<P><input type = "Submit" name = ""> <input type = "RESET">
</cfform>
</body>
</html>
(FORM.year, FORM.month, FORM.day), "mmm-dd-yyyy")#
<LI>Built with CreateDateTime: #DateFormat(CreateDateTime
(FORM.year, FORM.month, FORM.day, FORM.hour, FORM.minute,
FORM.second))#
<LI>Built with CreateODBCDate:
#DateFormat(CreateODBCDate(yourDate), "mmmm d, yyyy")#
<LI>Built with CreateODBCDateTime:
#DateFormat(CreateODBCDateTime(yourDate), "d/m/yy")#
validate = "integer"
required = "Yes">
message = "Please enter a month (1-12)" validate = "integer"
required = "Yes">
message = "Please enter a day of the month (1-31)"
validate = "integer" required = "Yes">
message = "You must enter an hour (0-23)" validate = "integer"
required = "Yes">
message = "You must enter a minute value (0-59)" validate = "integer"
required = "Yes">
message = "You must enter a value for seconds (0-59)"
validate = "integer" required = "Yes">
Chapter 3 ColdFusion Functions
Need help?
Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?