UX pattern for implementing calendars

In my recent development I am required to implement a calendar view which is having month view for each month for given date range. See below.

enter image description here

I have already done the programming part. It is required allows users to select all Sundays, all Mondays, all Tues days etc.. The existing swing UI like this. (Hope this will help to get an idea) see below.

enter image description here

As you can see both Sundays and Tues check boxes are selected and marked in calendar as well. Calendar days are are not clickable and only the check boxes can be selected.

Pure idea is to allow users to selected week/end days and see them on calendar view. Calendar days are not clickable. First thought came to mind is implementing the same behavior as given above for web UI as well.

Hope you all thoughts on this.

Thanks Nuwan