I need symfony form type datetime to show current year in the select input.
->add('dueDate', DateTimeType::class) shows year 2014 in the selection input.
I need symfony form type datetime to show current year in the select input.
->add('dueDate', DateTimeType::class) shows year 2014 in the selection input.
I needed to add years for input:
>add('dueDate', DateTimeType::class, array(
'years' => array(
2019,
2020,
2021
)
))