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
namestringyes—See documentation for textFieldTag.
selectedstringyes—See documentation for selectTag.
orderstringyesmonth, day, yearSee documentation for dateSelect.
separatorstringyes—See 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.
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.
<!--- 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>