cfcalendar.cfm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfcalendar tag example: how to put an interactive flash format calendar in a form</title>
</head>
<body>
<h2 style="color:Crimson">cfcalendar Tag Example</h2>
<cfif IsDefined("Form.SubmitDate")>
<cfoutput>
<cfif Form.ArraivalDate LTE Now()>
Select a date after: <b>#DateFormat(Now())#</b>
<cfelse>
Your Arraival Date Is: <b>#DateFormat(Form.ArraivalDate)#</b>
</cfif>
</cfoutput>
</cfif>
<br /><br />
<cfform name="TestForm" format="flash" action="" height="350" width="400" skin="halogreen">
<cfcalendar name="ArraivalDate" required="yes">
<cfinput type="submit" name="SubmitDate" value="Submit Arrival Date">
</cfform>
</body>
</html>
Related coldfusion example
- cfabort tag example: how to stop the processing of a coldfusion page at the tag location
- cfoutput tag example: how to get output of a query (defined start rows) in coldfusion
- cfoutput tag example: how to get output of a function (UDF) in coldfusion
- cftable tag example: how to build a table in coldfusion (HTML Table)
- cfquery example: how to select data
- cfquery tag example: how to delete data
- cfquery tag example: how to insert data
- cfquery tag example: how to update data
- cfbreak tag example: how to use cfbreak tag to break a loop
- cfcase tag example: how to use cfcase tag in cfswitch tag