# 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/D1It77TBNixsnGIn6JXk">DATE.SET</a></td><td>Returns a date after changing the format</td></tr><tr><td><a href="/pages/6hWa7Cq2J7XpuBICiO55">EOMONTH</a></td><td>Returns a date specifying the last day of the month</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/XMr7NYI2J3RM9EM3Mvwi">PERIOD_RANGE</a></td><td>Returns an array of date ranges between two specified dates</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: 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.inforiver.com/premium-table/formula-syntax/date-functions.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.
