You can add a date picker to the ui_component form component in Magento.
Field with a date picker, you need to add the field form element type is a date.
<field name=”birthday” formElement=”date”>
Code Snippet to add for a ui_component form.xml file,
<field name="birthday" formElement="date">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="source" xsi:type="string">customer</item>
</item>
</argument>
<settings>
<validation>
<rule name="validate-date" xsi:type="boolean">true</rule>
</validation>
<dataType>text</dataType>
<visible>true</visible>
</settings>
</field>
You can validate a date by adding a rule to the <settings> tab with,
<validation>
<rule name="validate-date" xsi:type="boolean">true</rule>
</validation>
Using the above code snippet, you can able to add a date-picker in the UI component form.
