Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By CatsFromStonehenge on
I'm interested in using a better date picker than the standard one (well actually, the standard one is great for dates near to today's date, but for Date of Birth it's a bit slow to scroll all the years (I must be old!).
So hopefully I'll be able to use a datepicker like this:
https://jqueryui.com/datepicker/#inline
There is some clues here:
https://www.drupal.org/project/datepicker --- but this seems to not be supported in Drupal 8?
Here's my code:
$date = '1970-01-01';
$form['date_of_birth'] = array(
'#type' => 'date',
'#title' => t('Date of Birth'),
'#default_value' => $date
);
It looks like the date picker module isn't ready for Drupal 8 yet?