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

^XUWORKDY: Workday Calculation (Obsolete)

NOTE: Calling the XUWORKDY routine from the top is obsolete. The ^XUWORKDY API was replaced by the $$EN^XUWORKDY API. This API is dependent on the HOLIDAY (#40.5) file being updated by the sites.

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

Description

To use the ^XUWORKDY API, 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.

You can call the ^XUWORKDY routine to calculate the number of workdays between two dates (X, X1). It returns a positive value if X<X1 and a negative value if X>X1. If either date is imprecisely specified, or if the HOLIDAY global is empty, then ^XUWORKDY returns a NULL string.

Format

  ^XUWORKDY

Make sure to perform the following steps before calling this API:

Input Variables

X:

(required) Starting date in VA FileMan internal format (e.g., 2850420).

X1:

(required) Ending date in VA FileMan internal format (e.g., 2850707).

Output Variables

X:

The number of workdays in the interval.

Example

>S X=2850420,X1=2850707 D ^XUWORKDY W X
55

 


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

Reviewed/Updated: July 18, 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.