# Date & Time

| Function          | Description                                                                                                                                                                                                                                                                                                                                                |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DATE              | <p>Returns a date, from a user-supplied year, month and day. </p><p><code>syntax: =DATE(year,month,dayOfMonth)</code> </p><p><code>example: DATE(2017,1,21)</code> </p><p><code>result: Returns Java Date Instance</code></p>                                                                                                                              |
| TIME              | Returns a time, from a user-supplied hour, minute and second.                                                                                                                                                                                                                                                                                              |
| DATEVALUE         | <p>Converts a text string showing a date, to java date </p><p><code>syntax: =DATEVALUE(time\_</code><em><code>in</code></em><code>\_string, format(optional))</code> </p><p><code>example: =DATEVALUE("12/12/2017") or</code></p><p>                 =<code>DATEVALUE("12/12/2017","dd/mm/yyyy")</code></p><p><code>result: Java date instance</code> </p> |
|                   |                                                                                                                                                                                                                                                                                                                                                            |
| TIMEVALUE         | <p>Converts a text string showing a time, to a decimal that represents the time in Excel.</p><p><code>example: =TIMEVALUE("10:10 AM")</code></p><p><code>result: java instance with time and default date</code>  </p>                                                                                                                                     |
| <p></p><p>NOW</p> | <p>Returns the current date & time. </p><p><code>syntax: =NOW()</code> </p><p><code>result: returns Java Date Instance with time</code></p>                                                                                                                                                                                                                |
| TODAY             | <p>Returns today's date.</p><p><code>syntax: =TODAY()</code> </p><p><code>result: returns Java Date Instance without time</code></p>                                                                                                                                                                                                                       |


---

# 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.qatts.com/functions/date-and-time.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.
