Date time picker in Input Field using Bootstrap

Date time picker in Input Field using Bootstrap

Date time picker in Input Field using Bootstrap

In the event that your site utilizes Bootstrap system, adding a date time picker to the shape field is simple. The bootstrap-date time picker module gives a simple approach to include date time picker in bootstrap frame component. Utilizing this date time picker, the client can choose the day, month, year, hour, and moment with a single tick.

The bootstrap-datetimepicker module is a moment answer for include datetimepicker in a frame field. Here we’ll give the illustration code to coordinate datetimepicker in the bootstrap frame.

Live Demo   Download Source Code


<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Date time picker in Input Field using Bootstrap by Lisenme</title>
<!-- Minified Bootstrap CSS -->
<link rel="stylesheet" href="">
<!-- Minified JS library -->
<script src=""></script>
<!-- Minified Bootstrap JS -->
<script src=""></script>

<link href="css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<script src="js/bootstrap-datetimepicker.min.js"></script>

    h1 {
    color: white;
    background-color: #0984bf;
            padding: 4px 16px 6px;
.form-control{width: 200px; margin-bottom: 10px;}
<div class="container">
    <h1>Inline Datetime Picker</h1>
<div id="datetime4"></div>
<script type="text/javascript">
<h1>Datetime Picker</h1>
<input size="16" type="text" class="form-control" id="datetime" readonly>
<script type="text/javascript">
	format: 'yyyy-mm-dd hh:ii'

<h1>Datetime Picker Auto Close</h1>
<input size="16" type="text" class="form-control" id="datetime2" readonly>
<script type="text/javascript">
	format: 'yyyy-mm-dd hh:ii',
	autoclose: true



You May Also Like

About the Author: Ranjith Kumar A

0 0 votes
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
3 years ago

necesito solo la opcion de ingresar la hora, me podrias ayudar en eso.


Julia Ng
Julia Ng
3 years ago

How do I block past date and time?

Would love your thoughts, please comment.x