Skip to content

Day of Week not showing when using date-time picker #2048

Discussion options

You must be logged in to vote

Hi! Try initializing the component via JS and providing the options for datepicker here. It should be working properly like that:

const dateTimepickerContainer = document.querySelector("#datetimepicker");

new Datetimepicker(dateTimepickerContainer, {
  datepicker: {
    format: "dddd, dd, mmm, yyyy",
  },
});

Make sure to remove the data-te-date-timepicker-init data attribute or Datetimepicker from the initTE method so that the component wont initialize twice.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by juujisai
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants