I'm using Magento 2.2.5. How to add the Datepicker in frontend(product view page).
1 Answer
You can do this by js.
<script>
require([
"jquery",
"mage/calendar"
], function ($) {
$("#ElementId").calendar({
buttonText: "<?php echo __('Select Date') ?>"
});
});
</script>