Can I somehow exclude weekends, using either "date field" or "popup calendar"?

One of the solutions is to add (using CSS) a red background to Sunday and Saturday at popup calendar, but there is no classes such as 'saturday' and 'sunday' in html code of popup calendar.

Comments

karengrey’s picture

Id also like this and also option to exclude public holidays.

Nobarte, as a quick fix you can set a display:none on td.ui-datepicker-week-end-cell

quicksketch’s picture

Status: Active » Postponed

Not planning on adding this feature any time soon.

nobarte’s picture

Thanks karengreen! It works for me (#1).

elgandoz’s picture

#1 = great
thanks!

DanChadwick’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)

There won't be further feature development in the X.x-3.x branches.

studiozut’s picture

In case anyone is still looking to solve this, in the 4.x version (Drupal 7) I used the following css variant on karengrey's solution above:
td.ui-datepicker-week-end but I had to set visibility:hidden. I found that display:none was causing the classes to be assigned incorrectly thanks to the missing tds (ui-datepicker-week-end was being assigned to Friday and Saturday, not Sunday and Saturday)