I assume that you are using the sonata_type_date_picker field in the sonata. The documentation is here . Then your case can be implemented as follows:
->add('userDate', 'sonata_type_date_picker', [ 'dp_min_date' => 'Jan 1, 2000',
Alternatively, you can choose a date selector with three drop-down menus - this is the standard Symfony date field, works great with SonataAdmin:
->add('userDate', 'date', [ 'years' => range(2000, 2020), ]);
I would also recommend adding a backend validation with the same rules (in Entity):
protected $userDate;
source share