# NETWORKDAYS

The NETWORKDAYS function returns the number of workdays between two dates. It accepts two dates as inputs.&#x20;

## Syntax <a href="#syntax" id="syntax"></a>

```java
NETWORKDAYS(fromDate,toDate)
```

## Arguments <a href="#arguments" id="arguments"></a>

fromDate - Starting date in the range. Required. This can be a date, a node reference or a measure that includes the date.

toDate- Ending date in the range. Required. This can be a date, a node reference or a measure that includes the date.

## Return value <a href="#return-value" id="return-value"></a>

Number.

## Example <a href="#example" id="example"></a>

```java
NETWORKDAYS("05/31/2024","06/30/2024")
//Returns 22
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F3V20I1t0GPAxetI6ynAH%2Fimage.png?alt=media&#x26;token=c63901ab-546d-489c-9ab0-cbca48bfdb37" alt=""><figcaption><p>NETWORKDAYS</p></figcaption></figure>
