There are few reasons I use Bootstrap 3 Datetimepicker 3.0.0 in my MVC 5 project.
Any idea how to offset week start so it starts from Monday? Language tag also not working.
$(function () {
$('#PickupTime').datetimepicker({
weekStart: 1
});
});
This is not working because it is not the same bootstrap-datapicker.js
You can also override the dow value via the locale when calling datetimepicker()
I have just done! In moment.js change this line:
'dow' MUST BE 1 and the week starts at Monday.
open jquery.datetimepicker.js and find variable "dayOfWeekStart" and set it to 1
I stumbled upon the same question, and i'm using:
And, following the answer of user3928861 I found the answer on line 961 of moment.js as follows:
If you are using moment.js from v2.8.1 onwards, add the below code before calling datetimepicker().
If you are using old version of moment.js, do the following