Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom format not working on Datetimepicker #4

Closed
chongmandick opened this issue Jan 31, 2018 · 1 comment
Closed

Custom format not working on Datetimepicker #4

chongmandick opened this issue Jan 31, 2018 · 1 comment

Comments

@chongmandick
Copy link

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

@groovemen
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants