Version

DateTimeLevelCreation Property

Indicates the manner in which levels are created for hierarchies associated with the System.DateTime data type.
Syntax
'Declaration
 
Public Property DateTimeLevelCreation As DateTimeLevelCreationFlags
public DateTimeLevelCreationFlags DateTimeLevelCreation {get; set;}
Remarks

The value of this property defaults to a combination of constants which causes year, month, and date levels to be created. By default, hierarchical levels are not created for the semester or quarter in which a date falls.

The constants of the DateTimeLevelCreationFlags enumeration can be combined by the logical OR operator to produce any combination of date levels.

For example, to group by semester and quarter only, set this property to 'DateTimeLevelCreationFlags.Semester | DateTimeLevelCreationFlags.Quarter'.

Note that this property supercedes the value of the GenerateAllMembersLevel for hierarchies associated with the System.DateTime data type.

Setting this property to 'None' causes the level creation logic to observe the value of the GenerateAllMembersLevel for DateTime hierarchies.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also