if (Date.first_day_of_week == 1) {
    Date.weekdays = $w("D S T Q Q S S");
} else {
    Date.weekdays = $w("S D S T Q Q S");
}