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
According to the options for Datetimepicker this is not possible. It only supports the following properties:
Source: http://eonasdan.github.io/bootstrap-datetimepicker/#options
You can disable the weekend if you don't want to see sunday.
Datetimepicker has an option to set that to match wherever you are in the world (see the locale option http://eonasdan.github.io/bootstrap-datetimepicker/Options/#locale)
You can manually override it
Instead of using moment.js I used moment-with-langs.js (I guess it came with default package ASP.NET MVC 5).
By calling:
thing works, finally the calender starts from monday.
UPDATE: Even better, add key to web.config
and then