Reference Type: Supported, Category: Miscellaneous, Integration Agreement: 10046
NOTE: The XUWORKDY routine is maintained for code that might still use
To use the ^XUWORKDY APIs, you must make sure that the HOLIDAY file (#40.5) is populated with each year's holidays for the workday calculation to work correctly. If it is not populated, you need to populate it yourself (Kernel distributes this file without data). Only enter holidays that fall on weekdays, however.
The $$WORKDAY^XUWORKDY extrinsic function returns 1 if the date submitted is a workday and 0 if it is not. If the date is imprecisely specified, or if the HOLIDAY global is empty, then $$WORKDAY^XUWORKDY returns a NULL string.
(required) Starting date in VA FileMan internal format (e.g., 2850420).
This example shows the return value when a workday in VA FileMan internal format is input:
>W $$WORKDAY^XUWORKDY(3090102) 1
This example shows the return value when a non-workday in VA FileMan internal format is input:
>W $$WORKDAY^XUWORKDY(3090103) 0
August 26, 2011