Home Forums Porto Admin – Responsive HTML5 Template FAQ’s How to change options of the Date Picker Plugin

  • This topic has 0 replies, 1 voice, and was last updated 5 years ago by Support. This post has been viewed 8768 times
Viewing 1 post (of 1 total)
  • Author
  • #10006792

    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:

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

    Available Options:

Viewing 1 post (of 1 total)