bool = IsInCurrentWeek(nDate,bUseGridWeekStart)
This macro function checks if nDate is in the same week as n_TokenDate (the date of the incoming macro token).
➢If the incoming macro token is inside a mini-calendar, the reference date for the week comparison is the date of the parent mini-calendar token. Otherwise, it is the date of the incoming macro token.
If bUseGridWeekStart is true then the week test will be based on the weekstart defined in the current DiaryGridLine's GridOptions property. Otherwise, weeks will be assumed to start on Mondays.
See also: IsInCurrentMonth.
Topic 150900, last updated on 10-Oct-2026