Disable past date when i create new quotes and invoice

i am trying to disable past date when i create quotes and invoice, help me

i am using following code

var dateToday = new Date();
var dates = $("#quote_date_created").datepicker({
defaultDate: “+1w”,
changeMonth: true,
numberOfMonths: 1,
minDate: dateToday,
onSelect: function(selectedDate) {
var option = this.id == “quote_date_created” ? “minDate” : “maxDate”,
instance = $(this).data(“datepicker”),
date = $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings);
dates.not(this).datepicker(“option”, option, date);

its work when i run online or on localhost

See https://bootstrap-datepicker.readthedocs.io/en/latest/options.html#startdate