Bootstrap Datepicker Disable Saturday and Sunday Example

By Hardik Savani | November 30, 2019 | Category : Bootstrap

Hi Guys,

Here, i will give you simple example of how to disable weekends in bootstrap datepicker. we will simply disable saturday and sunday in bootstrap datepicker. we will disable saturday sunday using daysOfWeekDisabled option in bootstrap datepicker.

We almost using datepicker whenever we need to use date field in our application. specific if you are using with bootstrap then you must will use bootstrap datepicker. so if you need to disabled Sunday and Saturday then you can do it as like bellow screenshot.

You can do it by following sample code. i also five you full example. you can see both code.



daysOfWeekDisabled: [0,6]



<!DOCTYPE html>



<title>Bootstrap Datepicker Disable Saturday Sunday Example -</title>

<link rel="stylesheet" type="text/css" href="">

<link rel="stylesheet" type="text/css" href="">

<script src = ""></script>

<script type="text/javascript" src=""></script>

<script src=""></script>



<div class="container">

<h1>Bootstrap Datepicker Disable Saturday Sunday Example -</h1>

<input type="text" name="date" class="form-control datepicker" autocomplete="off">



<script type="text/javascript">


daysOfWeekDisabled: [0,6]




I hope it can help you...

Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.

We are Recommending you: