How to change Bootstrap Datepicker with specific date format

Hello to Dev’s today now in this post i will show you How to change Bootstrap Datepicker with specific date format? We know that bootstrap is a very popular html css framework. By using Bootstrap we can make the batter responsive design. If we have need datepicker with our date format as like yyyy-mm-dd, yyyy/mm/dd, dd/mm/yyyy, dd-mm-yyyy etc then we can do this very easily. So if we want to set the date format then we have to just add one argument on format and it will add format as we want as like as bellow example.

So let’s start and see the bellow example.

<html lang="en">
    <title>Bootstrap Datepicker with format Example</title>  
    <link href="" rel="stylesheet">
    <link href="" rel="stylesheet">
    <script src=""></script>
    <script src=""></script>  
        <script src=""></script>  

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

<script type="text/javascript">
       format: 'yyyy-mm-dd'


Read Also : Generate Captcha code and Validation by using BotDetect package in laravel

Thanks for read. I hope it help you. For more you can follow us onĀ facebook.


About Shahriar Sagor

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Shahriar Sagor →