# WEEKDAYS

### Description

`WEEKDAYS` takes two dates and returns the number of weekdays (Monday–Friday) between them. The order of the arguments does not matter.

### Example

```
WEEKDAYS('2022-12-01', '2022-12-12')
```

This returns `7`, as there are 7 weekdays between 1 December and 12 December 2022.

### Example with a datetime

```
WEEKDAYS('2022-12-01T13:49:23.191Z', '2022-12-12')
```

Datetime values are supported — this also returns `7`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.atfinity.io/rule-language/operators/date-operators/weekdays.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
