 |
First Day of the Week
NlsCalendar Professional - Advanced Calendar Control
|
|
|
|
Any day can be first day of the week. Use 0 for Sunday, 1 for Monday and so on.
Click on the "Pick" button to shows the calendar.
- In this example, the first day of the week is set to Monday (1).
- The example above returns date with format 'day in week, month date, year [hours:minutes]'.
- The calendar mode is floating (0) which is the default mode.
Example code:
//creates the calendar.
<script>
var cal=new AOCalendar("cal1");
cal.opt.themeDir="../themes/default/";
cal.opt.dtFormat="$DW, $MM $dd, $YY [$HH:$mi]";
cal.opt.enableTime=true;
cal.opt.firstDayOfWeek=1;
cal.render();
</script>
|
|