# eq\_day

Source: https://zotonic.com/docs/1498/eq_day

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

Language: en



Tests if the value is a date and equal to the argument. The value and the argument must be a tuple of the format `{Y,M,D}` or `{{Y,M,D},{H,I,S}}`.

For example:

```django
{% if value|eq_day:othervalue %}same day{% endif %}
```

This outputs “same day” if value and othervalue are dates and on the same day.

This is useful for conditions, in combination with for example the if tag.

License: 

Attribution: 

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