FloatingHolidayOffset Property

This sets or gets the number of days before or after the calculated floating date on which the holiday actually occurs.

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public int Offset { get; set; }

Property Value

Int32

Use a positive value for a number of days after the calculated date or a negative number for a number of days before the calculated date.

Normally, this value will be zero so that the calculated date is the holiday date. However, in cases where a holiday is calculated in terms of the number of days after a given holiday, this can be set to the offset to adjust the calculated date.

For example, a "Day after Thanksgiving" holiday would set this property to 1 (one day after Thanksgiving, which is the 4th Thursday in November). You cannot use the 4th Friday to calculate the date because if the month starts on a Friday, the calculated date would be a week too early. As such, the Offset property is used instead.

See Also