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
namestringyesSee documentation for textFieldTag.
selectedstringyesSee documentation for selectTag.
dateOrderstringyesmonth,day,yearSee documentation for dateTimeSelect.
dateSeparatorstringyesSee 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.
labelstringyesSee documentation for dateSelect.
labelPlacementstringyesaroundSee documentation for textField.
prependstringyesSee documentation for textField.
appendstringyesSee documentation for textField.
prependToLabelstringyesSee documentation for textField.
appendToLabelstringyesSee documentation for textField.
combinebooleanyesSee 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>