> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/evaluator/age.md).

# Age

\<evalcmd> Age && int && Difference between the current date and the supplied date. && date && date && The date in question. && \[units] && string && Unit type to return (defaults to "d" for days). Valid unit types are:

|      |                                    |
| ---- | ---------------------------------- |
| yyyy | Years                              |
| q    | Quarter years                      |
| m    | Months                             |
| y    | Days                               |
| d    | Days                               |
| w    | Whole weeks                        |
| ww   | Calendar weeks (number of Sundays) |
| h    | Hours                              |
| n    | Minutes                            |
| s    | Seconds                            |

\</evalcmd>

Returns the difference between the the current date and the supplied dates, expressed as *units* (defaults to days).

//<Example://>

```
Output(Age("2021-01-01"))
--> 1158
```
