Bootstrap Datetimepicker Disable Past Dates And Time Example

Admin   HTML5 - CSS   293  2021-03-12 19:10:08

Hi Guys,

In this example,I will learn you how to set bootstrap datetimepicker disable past dates and time. you can simply set to datetimepicker in html code.

you will check to datetimepicker disable past dates and time bellow example.

Example 1 :


<!DOCTYPE html>



<title>datetimepicker disable past dates and time - </title>

<link href="" rel="stylesheet">

<script src=""></script>

<script src=""></script>

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

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

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



<div class="container">

<h2>datetimepicker disable past dates and time - </h2>

<div class="row">

<div class='col-sm-6'>

<div class="form-group">

<div class='input-group date' id='datetimepicker1'>

<input type='text' class="form-control" />

<span class="input-group-addon">

<span class="glyphicon glyphicon-calendar"></span>





<script type="text/javascript">

$(function () {


minDate:new Date()








It will help you...