The minimum number of days needed to determine the first week of the year.

Usage

Set_Property(OLECtrlEntID, "OLE.FirstWeekofYearDays", Value)

Values

An integer between 1 and 7.

Default: 1

Remarks

The FirstWeekofYearDays property is useful in regions where the first week of the year requires a certain number of days. By default, this property is 1, which means January 1st always indicates the first week of the year. In Europe, however, the first week of the year is the week with 4 or more days in it, so you would set this property to 4.

Example

// We're in the European mainland, Fräulein
Set_Property(@Window:".OLE_CALENDAR", "OLE.FirstWeekofYearDays", 4)
  • No labels