Skip to content

Miscellaneous

dateSelectTags()

dateSelectTags() — returns any

Builds and returns a string containing three select form controls (month, day, and year) based on a name and value.

NameTypeRequiredDefaultDescription
namestringyesSee documentation for textFieldTag.
selectedstringyesSee documentation for selectTag.
orderstringyesmonth, day, yearSee documentation for dateSelect.
separatorstringyesSee documentation for dateSelect.
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.
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.
<!--- This "Tag" version of function accepts `name` and `selected` instead of binding to a model object --->
<cfoutput>
	#dateSelectTags(name="dateStart", selected=params.dateStart)#
</cfoutput>

<!--- Show fields for month and year only --->
<cfoutput>
	#dateSelectTags(name="expiration", selected=params.expiration, order="month,year")#
</cfoutput>