Skip to main content
1 of 4
Manish
  • 3.1k
  • 7
  • 32
  • 47

Here I got the solution:

<div class="control customer-dob">
  <input type="text" class="input-text required-entry hasDatepicker" id="calendar_inputField" name="dob" aria-required="true">
  <script>
  require([
       "jquery",
       "mage/calendar"
  ], function($){
      $("#calendar_inputField").calendar({
  changeYear:true,
  changeMonth:true,
             yearRange: "1970:2050",
           buttonText:"Select Date",
      });
    });
  </script>
</div>

Solution:

enter image description here

Manish
  • 3.1k
  • 7
  • 32
  • 47