DHTMLX Docs & Samples Explorer

Week start day

Source
<link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxcalendar.css">
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxcalendar_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcalendar.js"></script>
    <style>
    </style>
    <script>
var myCalendar;
function doOnLoad() {
    myCalendar = new dhtmlXCalendarObject("calendarHere");
    myCalendar.setSkin("dhx_skyblue");
    myCalendar.setDate(new Date(2013, 2, 1, 16, 0));
    myCalendar.show();
}
</script> <div style="margin-bottom: 20px;"> <input type="button" value="Mo" onclick="myCalendar.setWeekStartDay(1);"> <input type="button" value="Tu" onclick="myCalendar.setWeekStartDay(2);"> <input type="button" value="We" onclick="myCalendar.setWeekStartDay(3);"> <input type="button" value="Th" onclick="myCalendar.setWeekStartDay(4);"> <input type="button" value="Fr" onclick="myCalendar.setWeekStartDay(5);"> <input type="button" value="Sa" onclick="myCalendar.setWeekStartDay(6);"> <input type="button" value="Su" onclick="myCalendar.setWeekStartDay(7);"> </div> <div id="calendarHere" style="position:relative;height:250px;"></div>