YearStartDay Property

The YearStartDay property sets or returns the first day of a year.

Syntax

object .YearStartDay

Applies To

DateDrillDown Object

DateWizard Object

Discussion

Use this property to specify the date on which a year begins when years do not begin on January 1, such as fiscal or lunar years.

Since lunar years contain 52 weeks (not 365 days), you must ensure that the YearStartDay and WeekStart properties coincide. For example, if YearStartDay is set to 20000104, then WeekStart must have a value of trMonday.

The date must be in YYYYMMDD format.

A COM exception is thrown in error situations. The message that is passed with the exception varies depending on the error situation.

Type

Long

Access

Read/Write (DateDrillDown)

Write (DateWizard)

Examples

objDateWizard = objModel.DateWizardobjDateDim 
= objDateWizard.CreateDateDimension()objDrillDown
= objDateDim.DrillDowns(1)objDrillDown.YearStartDay = 19900101