determine weekday numbering

javascript docs say Date.getDay() is supposed to put Sunday
at zero, but Sunday seems to be 6 in some cases; Monday at 0.
So, use a known date to calibrate weekday numbering.
set datepicker first-day to Monday

so Sat and Sun are juxtaposed for weekend