In this post, i will show you How to change view mode in bootstrap date picker like yyyy-mm? When we are working on our laravel application and we must need to use the date picker picker but sometimes i need only select only year and month because sometimes we have to filter data with selected month and year.


<html lang="en">
        <title>Bootstrap - datepicker change view mode like yyyy-mm</title>
        <link href="" rel="stylesheet">
        <link href="" rel="stylesheet">
        <script src=""></script>
        <script src=""></script>  
        <script src=""></script>

        <div class="container text-center">
            <h2>Bootstrap - datepicker change view mode like yyyy-mm</h2>
            <input class="date-newform-control" style="width: 300px;" type="text">

            <script type="text/javascript">
                    minViewMode: 1,
                    format: 'yyyy-mm'


Thanks i hope you will like this artical....