# now

Source: https://zotonic.com/docs/1375/now

URI: https://zotonic.com/id/1375

Language: en



::: {.aside}
See also

the <a href="/id/doc_template_filter_filter_date" class="doc-reference doc-reference-filter"><code>filter#date</code></a> filter for the possible format characters.
:::

Show the current date and time.

Displays the current local date and time, formatted according to the given date format string.

Example:

```erlang
{% now "Y-m-d" %}
```

Did output “2008-12-10” on december 10, 2008.

There is also a variable called `now`, which holds the current date:

```erlang
{{ now|date:"Y-m-d" }}
```

Is equivalent to using the `{% now %}` tag.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1375?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1375?language=en>)
