# ne\_day

Source: https://zotonic.com/docs/1501/ne_day

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

Language: en



Tests if two dates are not equal.

Tests if the value is a date and not 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|ne_day:othervalue %}different days{% endif %}
```

This outputs “different days” if value and othervalue are dates and different.

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

License: 

Attribution: 

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