# in\_past

Source: https://zotonic.com/docs/1500/in_past

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

Language: en



Tests if a date is in the past.

Tests if the value is a date and in the past. The value must be a tuple of the format `{Y,M,D}` or `{{Y,M,D},{H,I,S}}`. When the value is not a date or datetime, the result is `undefined`.

For example:

```django
{% if value|in_past %}Those days have gone.{% endif %}
```

This outputs “Those days have gone.” if the value is a date and in the past.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1500?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/1500?language=en>)
