I am trying to limit what the users can select from the date-picker so i only need to let the user select the last 2 days. I also don't want them to select today's date and forward. how can i limit the selection for the date-picker only for the last 2 days and nothing else? thanks
<script type="text/javascript">
$(document).ready(function () {
$('.datepicker').datepicker({ minDate: -2 });
});
</script>