Development jQuery

How can I make my JQuery calendar hide weekends and past dates at the same time?

My code

<label for="">Fecha de atenciĆ³n:</label>
    <input class="form-control" id="datepicker" ></input>

          beforeShowDay: function(date) {
            var day = date.getDay();
            return [(day != 0 && day != 6)];


OK, so I have this input with ID datepicker and under there, the script to hide weekends, but what I want to do is hide past dates but I can’t unfortunately and also it would be great if the datepicker can also hide special dates like xmas or new year eve.

Also I want to change the format to day-month-year

Leave a Reply

Your email address will not be published. Required fields are marked *