Menu Close

How to set Datepicker in bootstrap?


You are using bootstrap and you want to add datepicker, then you can use the bootstrap-datepicker library. But if you are new then learn to add datepicker in bootstrap.

Follow the codes below

<!DOCTYPE html>

<html lang="en">


        <meta charset="utf-8">

        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

        <meta name="author" content="">

        <title>Bootstrap Datepiker</title>  

        <link href="" rel="stylesheet">  

        <link href="" rel="stylesheet">
        <script src=""></script>

        <script src=""></script>  

        <script src=""></script>



        <strong>Date : </strong>  

        <input class="date form-control" style="width: 300px;" type="text">  

        <script type="text/javascript">  


               format: 'mm-dd-yyyy'  






Bootstrap Datepiker Date :

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?


Posted in Bootstrap, CSS, HTML

Leave a Reply

Your email address will not be published. Required fields are marked *

You can also read...