You can do as follows .
<script type="text/javascript">
$(function() {
var date = new Date();
var currentMonth = date.getMonth();
var currentDate = date.getDate();
var currentYear = date.getFullYear();
$('#datepicker').datepicker({
maxDate: new Date(currentYear, currentMonth, currentDate)
});
});
</script>
Here in the calendar, the future dates will be disabled.
Please accept and up vote if it helped you. Thanks in advance.
Kindest Regards
Sibeesh Venu
www.sibeeshpassion.com