I have successfully added calender and disable previous Date in my custom form by using below code.
<script>
require([
"jquery",
"mage/calendar"
], function ($) {
$("#My_ID").calendar({
showsTime: false,
hideIfNoPrevNext: true,
buttonText: "<?php echo __('Select Date') ?>",
minDate: new Date(),
dateFormat: 'yy-mm-dd'
});
});
How to disable List of dates which is in my database ?