smalot / bootstrap-datetimepicker

Both Date and Time picker widget based on twitter bootstrap (supports Bootstrap v2 and v3)
http://www.malot.fr/bootstrap-datetimepicker/
Apache License 2.0
3.49k stars 1.65k forks source link

How to add to "Year View" #695

Open jt4000 opened 6 years ago

jt4000 commented 6 years ago

Hello,

How do you add the code in order to get the "year view" (https://www.malot.fr/bootstrap-datetimepicker/) in the datepicker?

Thank you!

My current code is below

    $('.form_date').datetimepicker({
        format: "MM yyyy",
        language:  'eng',
        weekStart: 1,
        todayBtn:  1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        minView: 2,
        forceParse: 0
    });