DateFunction Property

The DateFunction property sets or returns which date categories are generated in a level.

Syntax

DateLevel .DateFunction

Applies To

DateLevel Object

Discussion

Use this property to create the appropriate date categories from a source column containing dates. For example, specify the trSpecialFunctionMonth constant to generate month categories.

The DateFunction property uses the values of xtrSpecialFunction.

Type

Constant - xtrSpecialFunction

Access

Read/Write

Examples

objDateWizard = objModel.DateWizardobjDateDim 
= objDateWizard.CreateDateDimension()objDateLevel
= objDateDim.DimensionLevels(1)objDateLevel.DateFunction 
= xtrSpecialFunction.trSpecialFunctionLunarQuarter