I am using solspace calendar. The weekend in our country is during Friday and Saturday. I would like to show the dates which are during the weekend in different color. Can anyone help me?
2 Answers
Please, try this:
{if '{event_start_date format="%w"}' > 4} class="weekend" {/if}
%w
returns the day of the week, from 0, for Sunday, to 6, Saturday.
event_start_date
is available on both exp:calendar:events
and exp:calendar:cal
.