bool = HolidayOfSetInPeriod(nHolSetID, nDate1, nDate2)
This function is useful if you only want to know that there is at least one holiday occurrence during a given period of time, but do not care what the details are.
The macro code below checks if there is a holiday of a set of Muslim holidays in the current month and, if so, displays a mention that the Islamic holidays begin at sunset the night before.
sResult = ''
nHolSetID = 28995 // a holidays set with only Muslim holidays
nMinDate = FirstDateOfMonth(n_TokenYear,n_TokenMonth)
nMaxDate = LastDateOfMonth(n_TokenYear,n_TokenMonth)
if HolidayOfSetInPeriod(nHolSetID, nMinDate, nMaxDate)
sResult = 'Islamic holidays begin at sunset the day before'
Topic 153200, last updated on 10-May-2022