Skip to content

Miscellaneous

dateTimeSelectTags()

dateTimeSelectTags() — returns any

Builds and returns a string containing six select form controls (three for date selection and the remaining three for time selection) based on a name.

NameTypeRequiredDefaultDescription
namestringyes—See documentation for textFieldTag.
selectedstringyes—See documentation for selectTag.
dateOrderstringyesmonth,day,yearSee documentation for dateTimeSelect.
dateSeparatorstringyes—See documentation for dateTimeSelect.
startYearnumericyes2010See documentation for dateSelect.
endYearnumericyes2020See documentation for dateSelect.
monthDisplaystringyesnamesSee documentation for dateSelect.
monthNamesstringyesJanuary,February,March,April,May,June,July,August,September,October,November,DecemberSee documentation for dateSelect.
monthAbbreviationsstringyesJan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,DecSee documentation for dateSelect.
timeOrderstringyeshour,minute,secondSee documentation for dateTimeSelect.
timeSeparatorstringyes:See documentation for dateTimeSelect.
minuteStepnumericyes1See documentation for timeSelect.
secondStepnumericyes1See documentation for timeSelect.
separatorstringyes-See documentation for dateTimeSelect.
includeBlankanyyesfalseSee documentation for select.
labelstringyes—See documentation for dateSelect.
labelPlacementstringyesaroundSee documentation for textField.
prependstringyes—See documentation for textField.
appendstringyes—See documentation for textField.
prependToLabelstringyes—See documentation for textField.
appendToLabelstringyes—See documentation for textField.
combinebooleanyes—See documentation for dateSelect.
twelveHourbooleanyesfalseSee documentation for timeSelect.
<!--- This "Tag&qquot; version of the function accepts a `name` and `selected` instead of binding to a model object --->
<cfoutput>
    #dateTimeSelectTags(name="dateTimeStart", selected=params.dateTimeStart)#
</cfoutput>

<!--- Show fields for month, day, hour, and minute --->
<cfoutput>
	#dateTimeSelectTags(name="dateTimeStart", selected=params.dateTimeStart, dateOrder="month,day", timeOrder="hour,minute")#
</cfoutput>