datetime

datetime

Field component to liase with all datetime types

formtools.datetime:

Basic
<cfproperty
    name="basicDate" type="date" hint="something meaningful" required="no" default=""
    ftseq="1" ftfieldset="General" ftwizardStep="General Details"
    ftType="datetime" ftlabel="Basic Date" />
Default to todays date
<cfproperty
    name="someDate" type="date" hint="The start date of the event" required="no" default=""
    ftseq="2" ftfieldset="General" ftwizardStep="General Details"
    ftDefaultType="Evaluate" ftDefault="now()" ftType="datetime" ftlabel="Some Date" />
Custom date and time format mask
<cfproperty
    name="someDate" type="date" hint="The start date of the event" required="no" default=""
    ftseq="3" ftfieldset="General" ftwizardStep="General Details"
    ftType="datetime" ftDateFormatMask="dd mmm yyyy" ftTimeFormatMask="hh:mm tt" 
    ftlabel="Some Date" />
Show date only
<cfproperty
    name="dateOnly" type="date" hint="The start date of the event" required="no" default=""
    ftseq="4" ftfieldset="General" ftwizardStep="General Details"
    ftType="datetime" ftShowTime="false" ftlabel="Date Only" />
Disable dateTime field by default
<cfproperty
    name="someDate" type="date" hint="The start date of the event" required="no" default=""
    ftseq="5" ftfieldset="General" ftwizardStep="General Details"
    ftType="datetime" ftToggleOffDateTime="true" ftlabel="Some Date" />
Datetime to be automatically set to the other field's date value.
<cfproperty
    name="endDate" type="date" hint="The start date of the event" required="no" default=""
    ftseq="5" ftfieldset="General" ftwizardStep="General Details"
    ftType="datetime" ftlabel="Some Date" ftWatch="startDate"/>

Attributes

NameRequiredDefaultOptionsDescription
ftRenderTypeNojqueryThis formtool offers a number of ways to render the input. (dropdown, jquery, input)
ftToggleOffDateTimeNofalseProvides an optional toggle to hide the date if its not required
ftDateFormatMaskNod mmm yyyyColdfusion mask for date for edit handler
ftStartYearShiftNo0Used when ftRenderType is set to dropDown, sets start of year range in select list.
ftEndYearShiftNo-100Used when ftRenderType is set to dropDown, sets end of year range in select list.
ftStartYearNoUsed when ftRenderType is set to dropDown, sets the value of the first year in year range.
ftEndYearNoUsed when ftRenderType is set to dropDown,, sets the value of the last year in year range.
ftShowTimeNotrueDisplay time portion of dateTime field.
ftDateMaskNod-mmm-yyColdfusion date mask for display handler.
ftTimeMaskNoshortColdfusion time mask for display handler.
ftDisplayPrettyDateNotrueConverts SQL dateTime value to human readable string