CAS 6


daysdiffbusinessfederal
- Date

Summary

Subtract business days using the US federal Market calendar.

Description

Get business days between two valid dates using the US Federal Bank Holiday calendar.

Invalid dates always return -999999.

If Start Date > End Date and Start Date is not a Federal Bank business day, then Start Date moves to the previous Federal business day.

If Start Date < End Date and Start Date is not a Federal Bank business day, then Start Date moves to the next Federal business day.

The Business days difference result includes the End Date but not the Start Date

Examples

daysdiffbusinessfederal DATE_FIELD 20210112
daysdiffbusinessfederal DATE_FIELD1 DATE_FIELD2
daysdiffbusinessfederal 20210805 20210804
daysdiffbusinessfederal 20210805 20210804
daysdiffbusinessfederal 20210809 20210806
daysdiffbusinessfederal 20210807 20210731

Syntax

daysdiffbusinessfederal StartDate EndDate

Right Arguments

Name Data Type Input Type Description Optional Default
StartDate Date Field, Constant Start Date No
EndDate Date Field, Constant End Date No

Result

Type: Integer

Business days difference.



Build 6.0.1062