JSFiddle - React, Tailwind, and code Playground

by aswinkumar863

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<input type="text" value="Select Date Here" id="single-listing-date-range">

JavaScript

function DisableDates(d) {
  var day = d.getDay();
  var monday = new Date()
  monday.setHours(0, 0, 0, 0)
  monday.setDate(monday.getDate() + (1 + 7 - monday.getDay()) % 7)
  return [(monday.getTime() == d.getTime() || day != 1)];
}

$('#single-listing-date-range').datepicker({
  minDate: +1,
  beforeShowDay: DisableDates
});