Logo
A datepicker for twitter bootstrap (@twbs). For more info please visit the plugin's Demo Pageor Github Repo.

Bootstrap Date Picker Examples


            <div class="card card-custom">
             <div class="card-header">
              <h3 class="card-title">
               Bootstrap Date Picker Examples
              </h3>
             </div>
             <!--begin::Form-->
             <form class="form">
              <div class="card-body">
               <div class="form-group row">
                <label class="col-form-label text-right col-lg-3 col-sm-12">Minimum Setup</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                 <input type="text" class="form-control" readonly placeholder="Select date"/>
                </div>
               </div>
               <div class="form-group row">
                <label class="col-form-label text-right col-lg-3 col-sm-12">Input Group Setup</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                 <div class="input-group date">
                  <input type="text" class="form-control" readonly  placeholder="Select date"/>
                  <div class="input-group-append">
                   <span class="input-group-text">
                    <i class="la la-calendar-check-o"></i>
                   </span>
                  </div>
                 </div>
                </div>
               </div>
               <div class="form-group row">
                <label class="col-form-label text-right col-lg-3 col-sm-12">Enable Helper Buttons</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                 <div class="input-group date" >
                  <input type="text" class="form-control" readonly  value="05/20/2017" id="kt_datepicker_3"/>
                  <div class="input-group-append">
                   <span class="input-group-text">
                    <i class="la la-calendar"></i>
                   </span>
                  </div>
                 </div>
                 <span class="form-text text-muted">Enable clear and today helper buttons</span>
                </div>
               </div>
               <div class="form-group row">
                <label class="col-form-label text-right col-lg-3 col-sm-12">Orientation</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                 <div class="input-group date mb-2" >
                  <input type="text" class="form-control" placeholder="Top left" id="kt_datepicker_4_1"/>
                  <div class="input-group-append">
                  <span class="input-group-text">
                   <i class="la la-bullhorn"></i>
                   </span>
                  </div>
                 </div>

                 <div class="input-group date mb-2">
                  <input type="text" class="form-control" placeholder="Top right" id="kt_datepicker_4_2"/>
                  <div class="input-group-append">
                   <span class="input-group-text">
                   <i class="la la-clock-o"></i>
                   </span>
                  </div>
                 </div>

                 <div class="input-group date mb-2">
                  <input type="text" class="form-control" placeholder="Bottom left"  id="kt_datepicker_4_3"/>
                  <div class="input-group-append">
                   <span class="input-group-text">
                   <i class="la la-check"></i>
                   </span>
                  </div>
                 </div>

                 <div class="input-group date">
                  <input type="text" class="form-control" placeholder="Bottom right" id="kt_datepicker_4_4"/>
                  <div class="input-group-append">
                   <span class="input-group-text">
                   <i class="la la-check-circle-o"></i>
                   </span>
                  </div>
                 </div>
                </div>
               </div>
               <div class="form-group row">
                <label class="col-form-label text-right col-lg-3 col-sm-12">Range Picker</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                 <div class="input-daterange input-group" id="kt_datepicker_5">
                  <input type="text" class="form-control" name="start"/>
                  <div class="input-group-append">
                   <span class="input-group-text"><i class="la la-ellipsis-h"></i></span>
                  </div>
                  <input type="text" class="form-control" name="end"/>
                 </div>
                 <span class="form-text text-muted">Linked pickers for date range selection</span>
                </div>
               </div>
               <div class="form-group row">
                <label class="col-form-label text-right col-lg-3 col-sm-12">Inline Mode</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                 <div class id="kt_datepicker_6"></div>
                </div>
               </div>
               <div class="form-group row">
                <label class="col-form-label text-right col-lg-3 col-sm-12">Modal Demos</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                 <a href="#" class="btn font-weight-bold btn-light-primary" data-toggle="modal" data-target="#kt_datepicker_modal">Launch modal datepickers</a>
                </div>
               </div>
              </div>
              <div class="card-footer">
               <div class="form-group row">
                <div class="col-lg-9 ml-lg-auto">
                 <button type="reset" class="btn btn-primary mr-2">Submit</button>
                 <button type="reset" class="btn btn-secondary">Cancel</button>
                </div>
               </div>
              </div>
             </form>
             <!--end::Form-->
            </div>
            

            // Class definition

            var KTBootstrapDatepicker = function () {

             var arrows;
             if (KTUtil.isRTL()) {
              arrows = {
               leftArrow: '<i class="la la-angle-right"></i>',
               rightArrow: '<i class="la la-angle-left"></i>'
              }
             } else {
              arrows = {
               leftArrow: '<i class="la la-angle-left"></i>',
               rightArrow: '<i class="la la-angle-right"></i>'
              }
             }

             // Private functions
             var demos = function () {
              // minimum setup
              $('#kt_datepicker_1').datepicker({
               rtl: KTUtil.isRTL(),
               todayHighlight: true,
               orientation: "bottom left",
               templates: arrows
              });

              // minimum setup for modal demo
              $('#kt_datepicker_1_modal').datepicker({
               rtl: KTUtil.isRTL(),
               todayHighlight: true,
               orientation: "bottom left",
               templates: arrows
              });

              // input group layout
              $('#kt_datepicker_2').datepicker({
               rtl: KTUtil.isRTL(),
               todayHighlight: true,
               orientation: "bottom left",
               templates: arrows
              });

              // input group layout for modal demo
              $('#kt_datepicker_2_modal').datepicker({
               rtl: KTUtil.isRTL(),
               todayHighlight: true,
               orientation: "bottom left",
               templates: arrows
              });

              // enable clear button
              $('#kt_datepicker_3, #kt_datepicker_3_validate').datepicker({
               rtl: KTUtil.isRTL(),
               todayBtn: "linked",
               clearBtn: true,
               todayHighlight: true,
               templates: arrows
              });

              // enable clear button for modal demo
              $('#kt_datepicker_3_modal').datepicker({
               rtl: KTUtil.isRTL(),
               todayBtn: "linked",
               clearBtn: true,
               todayHighlight: true,
               templates: arrows
              });

              // orientation
              $('#kt_datepicker_4_1').datepicker({
               rtl: KTUtil.isRTL(),
               orientation: "top left",
               todayHighlight: true,
               templates: arrows
              });

              $('#kt_datepicker_4_2').datepicker({
               rtl: KTUtil.isRTL(),
               orientation: "top right",
               todayHighlight: true,
               templates: arrows
              });

              $('#kt_datepicker_4_3').datepicker({
               rtl: KTUtil.isRTL(),
               orientation: "bottom left",
               todayHighlight: true,
               templates: arrows
              });

              $('#kt_datepicker_4_4').datepicker({
               rtl: KTUtil.isRTL(),
               orientation: "bottom right",
               todayHighlight: true,
               templates: arrows
              });

              // range picker
              $('#kt_datepicker_5').datepicker({
               rtl: KTUtil.isRTL(),
               todayHighlight: true,
               templates: arrows
              });

               // inline picker
              $('#kt_datepicker_6').datepicker({
               rtl: KTUtil.isRTL(),
               todayHighlight: true,
               templates: arrows
              });
             }

             return {
              // public functions
              init: function() {
               demos();
              }
             };
            }();

            jQuery(document).ready(function() {
             KTBootstrapDatepicker.init();
            });
            
Enable clear and today helper buttons
Linked pickers for date range selection

Validation State Examples


      <div class="card card-custom">
       <div class="card-header">
        <h3 class="card-title">
         Validation State Examples
        </h3>
       </div>
       <!--begin::Form-->
       <form class="form">
        <div class="card-body">
         <div class="form-group row">
          <label class="col-form-label text-right col-lg-3 col-sm-12">Valid State</label>
          <div class="col-lg-4 col-md-9 col-sm-12">
           <div class="input-group date">
            <input type="text" class="form-control is-valid" readonly  placeholder="Select date"/>
            <div class="input-group-append">
             <span class="input-group-text">
             <i class="la la-calendar-check-o"></i>
             </span>
            </div>
            <div class="valid-feedback">
               Success! You"ve done it.
            </div>
           </div>
           <span class="form-text text-muted">Example help text that remains unchanged.</span>
          </div>
         </div>
         <div class="form-group row">
          <label class="col-form-label text-right col-lg-3 col-sm-12">Invalid State</label>
          <div class="col-lg-4 col-md-9 col-sm-12">
           <div class="input-group date" >
            <input type="text" class="form-control is-invalid" readonly  placeholder="Select date"/>
            <div class="input-group-append">
             <span class="input-group-text">
             <i class="la la-calendar-check-o"></i>
             </span>
            </div>
            <div class="invalid-feedback">
             Sorry, the date is taken. Try another date?
            </div>
           </div>
           <span class="form-text text-muted">Example help text that remains unchanged.</span>
          </div>
         </div>
        </div>
        <div class="card-footer">
         <div class="form-group row">
          <div class="col-lg-9 ml-lg-auto">
           <button type="reset" class="btn btn-primary mr-2">Submit</button>
           <button type="reset" class="btn btn-secondary">Cancel</button>
          </div>
         </div>
        </div>
       </form>
       <!--end::Form-->
      </div>
      

      // Class definition

      var KTBootstrapDatepicker = function () {

       var arrows;
       if (KTUtil.isRTL()) {
        arrows = {
         leftArrow: '<i class="la la-angle-right"></i>',
         rightArrow: '<i class="la la-angle-left"></i>'
        }
       } else {
        arrows = {
         leftArrow: '<i class="la la-angle-left"></i>',
         rightArrow: '<i class="la la-angle-right"></i>'
        }
       }

       // Private functions
       var demos = function () {
        // minimum setup
        $('#kt_datepicker_1_validate').datepicker({
         rtl: KTUtil.isRTL(),
         todayHighlight: true,
         orientation: "bottom left",
         templates: arrows
        });

        // input group layout
        $('#kt_datepicker_2_validate').datepicker({
         rtl: KTUtil.isRTL(),
         todayHighlight: true,
         orientation: "bottom left",
         templates: arrows
        });
       }

       return {
        // public functions
        init: function() {
         demos();
        }
       };
      }();

      jQuery(document).ready(function() {
       KTBootstrapDatepicker.init();
      });
      
Success! You"ve done it.
Example help text that remains unchanged.
Sorry, the date is taken. Try another date?
Example help text that remains unchanged.

Quick Actions finance & reports

User Profile 15 messages

Recent Notifications

Important Notice

Lorem Ipsum is simply dummy text of the printing and industry.

System Update

There are many variations of passages of Lorem Ipsum available.

Server Maintenance

Contrary to popular belief, Lorem Ipsum is not simply random text.

DB Migration

If you are going to use a passage of Lorem Ipsum, you need.

System Messages
09:30 AM

To start a blog, think of a topic about and first brainstorm ways to write details

2:45 PM

To start a blog, think of a topic about and first brainstorm ways to write details

3:12 PM

To start a blog, think of a topic about and first brainstorm ways to write details

7:05 PM

To start a blog, think of a topic about and first brainstorm ways to write details

Notifications
Pic
Marcus Smart UI/UX, Art Director
+65%
AH
Andreas Hawks Python Developer
+23%
SC
Sarah Connor HTML, CSS. jQuery
-34%
Pic
Amanda Harden UI/UX, Art Director
+72%
SR
Sean Robbins UI/UX, Art Director
+65%
JT
Jason Tatum ASP.NET Developer
+139%

Privacy Settings:

After you log in, you will be asked for additional information to confirm your identity.

Security Settings:

After you log in, you will be asked for additional information to confirm your identity. For extra security, this requires you to confirm your email. Learn more.

Select A Demo

Demo 1
Demo 2
Demo 3
Demo 4
Demo 5
Demo 6
Demo 7
Demo 8
Demo 9