ge", function (e) {
           $('#datetimepicker6').data("DateTimePicker").maxDate(e.date);
       });
   });
</script></p>
<h4 id="code_6">Code</h4>
<pre><code>&lt;div class=&quot;container&quot;&gt;
   &lt;div class='col-md-5'&gt;
      &lt;div class=&quot;form-group&quot;&gt;
         &lt;div class='input-group date' id='datetimepicker6'&gt;
            &lt;input type='text' class=&quot;form-control&quot; /&gt;
            &lt;span class=&quot;input-group-addon&quot;&gt;
            &lt;span class=&quot