Search code examples
jquerytwitter-bootstrapdatepickerbootstrap-datetimepickereonasdan-datetimepicker

Select only day of week (Mo, Tue) and time using Bootstrap 3 DatePicker


After looking through this article Bootstrap 3 DatePicker, I have a question to create multiple date and timepicker using these formats at below:

Monday:18:00
Friday: 14:30

Actually, I don't need to take a concrete date like 09.01.2016. It is enough for me choosing the day of week and time, as I described above. Does Bootstrap provide this method?


Solution

  • Use following format: "dddd: HH:mm".

    For example:

    $('your-element').datetimepicker({
      format: "dddd: HH:mm"
    });