Home Forums Porto Admin Template Datepicker Format

This topic contains 1 reply, has 2 voices, and was last updated by  Support 2 months, 1 week ago. This post has been viewed 91 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10028509

    dsteel
    Participant

    How do I change the datepicker format from mm/dd/yyyy to dd/mm/yyyy?

    Thanks

    David


    #10028526

    Support
    Keymaster

    Hello,

    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:
    (assets/javascripts/theme-custom.js)

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

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

    Kind Regards,

    Jonas


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