> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/~/changes/mS6jwvARNLHpKqBa4cT9/formula-syntax/date-functions.md).

# Date functions

<table><thead><tr><th width="264">NAME</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><a href="/pages/yYuorK6jIvt6W3EBxK8D">DATEADD</a></td><td>Adds a specified number of days to the input date</td></tr><tr><td><a href="/pages/ql02dYgJ9Z93qVDmqBco">DATEDIFF</a></td><td>Returns the number of days between two input dates</td></tr><tr><td><a href="/pages/MQk8gp5VnIHSsTMWikmg">DAY</a></td><td>Extracts the day of the month from an input date</td></tr><tr><td><a href="/pages/kh3ExNauZaIISNALdZtb">DATE</a></td><td>Returns a date in the specified format</td></tr><tr><td><a href="/pages/D1It77TBNixsnGIn6JXk">DATE.SET</a></td><td>Returns a date after changing the format</td></tr><tr><td><a href="/pages/U2WnqEFspB3beNdTnXYo">DATE.FORMAT</a></td><td>Returns the current date in the specified format</td></tr><tr><td><a href="/pages/kcWTHghcZmnPlUev15fn">SOWEEK</a></td><td>Returns the starting date of the week</td></tr><tr><td><a href="/pages/VpgYps9fMOV1E0xptuzK">SOMONTH</a></td><td>Returns the starting date of the month</td></tr><tr><td><a href="/pages/f0HMjjanX5wuUGwtYvTi">SOQTR</a></td><td>Returns the starting date of the quarter</td></tr><tr><td><a href="/pages/Z606mvSqVGRVTNrwXKu7">SOYEAR</a></td><td>Returns the starting date of the year</td></tr><tr><td><a href="/pages/in7jdMqjAIg0lGYxLGzR">EOWEEK</a></td><td>Returns the last date of the week</td></tr><tr><td><a href="/pages/6hWa7Cq2J7XpuBICiO55">EOMONTH</a></td><td>Returns the last date of the month</td></tr><tr><td><a href="/pages/FtikriK0r5D5gcaOAIWB">EOQTR</a></td><td>Returns the last date of the quarter</td></tr><tr><td><a href="/pages/tCbhuB0z9Lk8OOViajBl">EOYEAR</a></td><td>Returns the last date of the year</td></tr><tr><td><a href="/pages/Yr4d5Up5ZEqeJk2k6yJk">NETWORKDAYS</a></td><td>Returns the number of workdays between two input dates</td></tr><tr><td><a href="/pages/UAe3x40yFelDhOvpEZNH">ADDDAYS</a></td><td>Adds a specified number of days to the input date</td></tr><tr><td><a href="/pages/AZMXeWcZ6P9S17AGwtW4">ADDWEEKS</a></td><td>Adds a specified number of weeks to the input date</td></tr><tr><td><a href="/pages/NoLwYJKRT10MijbDvFaz">ADDMONTHS</a></td><td>Adds a specified number of months to the input date</td></tr><tr><td><a href="/pages/FEDqIKiT0Pau87SG9uaA">ADDQTRS</a></td><td>Adds a specified number of quarters to the input date</td></tr><tr><td><a href="/pages/nJAERJXWPVOOwhevarEY">ADDYEARS</a></td><td>Adds a specified number of years to the input date</td></tr><tr><td><a href="/pages/pFxDWksErEjpBtzKREUz">FROMEXCELDATE</a></td><td>Converts an input date to a excel format date serial number</td></tr><tr><td><a href="/pages/7Fs6vo9UOC2tWtggDWXA">MONTH</a></td><td>Extracts the month from an input date</td></tr><tr><td><a href="/pages/Tfl5Qososjdb4OiJXn78">NOW</a></td><td>Returns the current date and timestamp</td></tr><tr><td><a href="/pages/0yjLEuaERZfPmth0pQPY">TODAY</a></td><td>Returns the current date</td></tr><tr><td><a href="/pages/gSPoIhpJOLZVjiHFgnzV">TOEXCELDATE </a></td><td>Converts an excel recognized serial number to the equivalent date</td></tr><tr><td><a href="/pages/VmmFmAaOfT8RX0E6xu9d">YEAR</a></td><td>Extracts the year from an input date</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.inforiver.com/~/changes/mS6jwvARNLHpKqBa4cT9/formula-syntax/date-functions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
