creativetimofficial / ct-paper-kit-2-pro

Paper Kit 2 PRO is a premium Bootstrap 4 UI Kit with a huge number of components, sections and example pages.
https://www.creative-tim.com/product/paper-kit-2-pro
21 stars 6 forks source link

Custom format not working on Datetimepicker #4

Closed chongmandick closed 6 years ago

chongmandick commented 6 years ago

screen shot 2018-01-31 at 3 05 53 pm

groovemen commented 6 years ago

Hello @chongmandick, thank you for using our templates; if you want a custom format of datetimpicker, you have to initiate it like in the example below:

$(function () {
    $('#datetimepicker5').datetimepicker({
       defaultDate: "11/1/2018",
       disabledDates: [
           moment("12/25/2018"),
           new Date(2018, 11 - 1, 21),
           "11/22/2013 00:53"
         ]
     });
});

Hope this information helps you! All the best, Stefan