Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10044948
    vlachoman
    Participant

    I need to change default date format which is mm-dd-yyyy to yyyy-mm-dd, how can I do it?


    #10044951
    Support
    Keymaster

    Hello,

    Yes, it’s possible to change the language, here’s an example:

    Let’s say you want to change the language of the date picker to Spanish:

    1) Add the locale file in the HTML

    2) Change the options:

    To change the format, you can just set it like this:

    <input type="text" data-plugin-datepicker data-plugin-options='{"format": "yy/mm/dd"}' class="form-control">

    Or change the default settings:
    (js/custom.js)

    $.extend(theme.PluginDatePicker.defaults, {
        format: "yy/mm/dd" 
    });

    Available Options:
    http://bootstrap-datepicker.readthedocs.org/en/release/options.html

    Kind Regards,

    Okler Themes


Viewing 2 posts - 1 through 2 (of 2 total)

This topic is marked as "RESOLVED" and can not rceive new replies.