Logo
Stockholm-icons / Layout / Layout-4-blocks Created with Sketch.

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.

Shopping Cart

iBlender The best kitchen gadget in 2020
$ 350 for 5
SmartCleaner Smart tool for cooking
$ 650 for 4
CameraMax Professional camera for edge cutting shots
$ 150 for 3
4D Printer Manufactoring unique objects
$ 1450 for 7
MotionWire Perfect animation tool
$ 650 for 7
System Messages
Top Authors Most Successful Fellas
+82$
Popular Authors Most Successful Fellas
+280$
New Users Most Successful Fellas
+4500$
Active Customers Most Successful Fellas
+4500$
Bestseller Theme Most Successful Fellas
+4500$
Notifications
Stockholm-icons / Home / Library Created with Sketch.
Another purpose persuade Due in 2 Days
+28%
Stockholm-icons / Communication / Write Created with Sketch.
Would be to people Due in 2 Days
+50%
Stockholm-icons / Communication / Group-chat Created with Sketch. -27%
Stockholm-icons / General / Attachment2 Created with Sketch.
The best product Due in 2 Days
+8%
Customer Care
Reports
Memebers
Stockholm-icons / Navigation / Up-2 Created with Sketch.

Select A Demo