Kernel 8.0 APIs Banner [skip navigation]
Office of Information & Technology (OIT) Banner

$$WORKPLUS^XUWORKDY: Workday Offset Calculation

NOTE: This API is dependent on the HOLIDAY (#40.5) file being updated by the sites.

Reference Type: Supported, Category: Miscellaneous, Integration Agreement: 10046


NOTE: The XUWORKDY routine is maintained for code that might still use it.

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 $$WORKPLUS^XUWORKDY extrinsic function returns the date that is "n" working days (i.e., offset) +/- of the input date. If the date is imprecisely specified, or if the HOLIDAY global is empty, then $$WORKPLUS^XUWORKDY returns a NULL string.



Input Parameters

date: (required) Date in VA FileMan internal format (e.g., 2850420).
offset: (required) The number of days to offset.



Returns the VA FileMan internal date that is "n" working days (i.e., offset) +/- of the input date.




VA (Internet) / VA(Intranet) / OI / PD / Site Map / Terms of Use / VA Privacy Policy / Accessibility

Reviewed/Updated: June 16, 2018

If you have questions, need more information, or are having accessibility problems with this website, please contact us by E-Mail: Webmasters, Phone: 510-768-6800, or FAX: 510-768-6850.