GenerateDateModifierPrim
function GenerateDateModifierPrim (D : TDateTime) : LongInt;
GenerateDateModifierPrim produces a key modifier based on the date D.
This routine is defined in the OnGuard unit. (as of 1.15 this routine has been moved to the OgUtil unit)