Is it possible to automatically validate the date of birth field in a form by limiting the input to the only users older than a certain age?
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
//...
->add('birthday', 'date', array(
'format' => 'dd-MMMM-yyyy',
'years' => range(\date("Y") - 13, \date("Y") - 100),
))
//...
;
}