# today - script and chart function

This function returns the current date from the system clock.

Syntax:

today([ timer\_mode])

**Return data type:** dual

Arguments:

Today arguments

| Argument | Description |
| --- | --- |
| timer\_mode | Can have the following values:<br><br><ul> <li>0 (day of  last finished data load)</li> <li>1 (day of function call)</li> <li>2 (day when the document was opened)</li> </ul><br><br>Information noteIf you use the function in a load script, timer\_mode=0 will result in the day of the last finished data load, while timer\_mode=1 will give the day of the current data load. |

Examples and results:

Examples and results

| Example | Result |
| --- | --- |
| `Today(<br>0)` | Returns the day of the last finished data load. |
| `Today(<br>1)` | When used in a chart expression, this returns the day of the function call.<br><br>When used in a load script, this returns the day when the current data load started. |
| `Today(<br>2)` | Returns the day when the document was opened. |