bool = IsDayOfWeek(nDate,nWeekday)
This macro function checks if the date nDate corresponds to the weekday nWeekday, where weekdays range from 1 (Monday) to 7 (Sunday).
This macro code below displays the text "staff meeting at 5pm" every Wednesday.
sResult = ''
bIsWednesday = IsDayOfWeek(n_TokenDate, 3)
if bIsWednesday
sResult = 'staff meeting at 5pm'
endif
See also: IsMonday, IsSunday, IsWeekend.
Topic 110080, last updated on 18-Apr-2020