Please enable JavaScript to view this site.

 

This system variable provides the date corresponding to the DayValue of the parent mini-calendar marker token in the surrounding grid, before the marker's month offset is applied. For example, inside [4mc+01], n_ParentMinicalDate is the date of DayValue 4 in the surrounding grid, not necessarily the first day of the displayed month.

 

➢To determine if the current token is inside a mini-calendar, use the b_InsideMinical system variable.

 

Ordinary tokens inside a mini-calendar are normally evaluated relative to the displayed month. Each token has its own DayValue, and applicable modifiers can change its date; the tokens do not all refer to the first day of that month. See embedded tokens DayValue and embedded tokens weekstart.

 

Example

 

For example, the following code tests whether the date of the parent mini-calendar marker falls on a Sunday. It uses n_ParentMinicalDate, so the condition depends on the marker's date in the surrounding grid, regardless of the date of the embedded macro token.

 

The WeekdayOf function returns 7 for Sunday. For example, inside [4mc+01], this tests the date of DayValue 4 in the surrounding grid.

bRESULT = false
if b_InsideMinical
   bRESULT = (WeekdayOf(n_ParentMinicalDate) == 7)
endif
// return the underlying token for normal processing
sRESULT = '[' + s_LangDayToken + ']'

In both cases, the macro token is replaced with sRESULT. The s_LangDayToken variable preserves the token's language tag, DayValue and token root, without its macro index.

 

See also: b_InsideMinical, s_ParentMinicalToken.

 


Topic 171890, last updated on 17-Nov-2026