MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 322

Cfml language reference
Table of Contents

Advertisement

298
<LI>Built with CreateDateTime: #CreateDateTime(FORM.year, FORM.month,
<LI>Built with CreateODBCDate: #CreateODBCDate(yourDate)#
<LI>Built with CreateODBCDateTime: #CreateODBCDateTime(yourDate)#
</UL>
<P>The same value can be formatted with dateFormat:
<UL>
<LI>Built with CreateDate: #DateFormat(CreateDate(FORM.year,
<LI>Built with CreateDateTime: #DateFormat(CreateDateTime(FORM.year,
<LI>Built with CreateODBCDate: #DateFormat(CreateODBCDate(yourDate),
<LI>Built with CreateODBCDateTime:
</UL>
</CFOUTPUT>
</CFIF>
<CFFORM ACTION="createdate.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" VALIDATE="integer"
REQUIRED="Yes">
Month<CFINPUT TYPE="Text" NAME="month" VALUE="6" VALIDATE="integer"
REQUIRED="Yes">
Day <CFINPUT TYPE="Text" NAME="day" VALUE="8" VALIDATE="integer"
REQUIRED="Yes">
</PRE>
<P><INPUT TYPE="Submit" NAME=""> <INPUT TYPE="RESET">
</CFFORM>
</BODY>
</HTML>
FORM.day, 12,13,0)#
FORM.month, FORM.day), "mmm-dd-yyyy")#
FORM.month, FORM.day, 12,13,0))#
"mmmm d, yyyy")#
#DateFormat(CreateODBCDateTime(yourDate), "d/m/yy")#
CFML Language Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 4.5

Table of Contents