Returns day of week of the provided date (1 for Sunday, 2 for Monday etc)
DAY_NUMBER_IN_WEEK (date)
Attribute of the Date type or date constant or calculation producing date
Number: the day of the week of the date (1 for Sunday, 2 for Monday, etc.)
IF DAY_NUMBER_IN_WEEK (Account.OpeningDate) = 1 THEN ...