# {html_select_date} `{html_select_date}` is a [custom function](index.md) that creates date dropdowns. It can display any or all of: year, month, and day. All parameters that are not in the list below are printed as name/value-pairs inside the ` ..... snipped ..... ``` ```smarty {* start and end year can be relative to current year *} {html_select_date prefix='StartDate' time=$time start_year='-5' end_year='+1' display_days=false} ``` With 2000 as the current year the output: ```html ``` See also [`{html_select_time}`](language-function-html-select-time.md), [`date_format`](../language-modifiers/language-modifier-date-format.md), [`$smarty.now`](../language-variables/language-variables-smarty.md#smartynow-languagevariablessmartynow) and the [date tips page](../../appendixes/tips.md#dates).