This is my code for DOB on the registration form and its not working. It just displays a text box and not date picker.
<?php $_dob = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Dob') ?>
<?php if ($_dob->isEnabled()): ?>
<?php echo $_dob->setDate($block->getFormData()->getDob())->toHtml() ?>
<?php endif ?>
What can be the issue?
$block->getFormData()->getDob()
.