.on(&quot;dp.change&quot;, function (e) {
           $('#datetimepicker6').data(&quot;DateTimePicker&quot;).maxDate(e.date);
       });
   });
&lt;/script&gt;
</code></pre>

<hr />
<h3 id="custom-icons">Custom Icons</h3>
<p><div class="container">
   <div class="col-sm-6" style="height:130px;">
      <div class="form-group">
         <div class='input-group date' id='datetimepicker8'>
            <input type='text' class="form-control" />
            <span class="input-group-addon">
            <span class=