---
title: '|naturalday'
description: says today or yesterday instead of a date.
date: '2026-08-21'
categories:
  - Filter
  - Date and Time
canonical: https://www.djangotemplatetagsandfilters.com/filters/naturalday/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/ref/contrib/humanize/#std-templatefilter-naturalday
---

# |naturalday

says today or yesterday instead of a date.

## Documentation

Replaces a date with `today`, `yesterday`, or `tomorrow` when it is one of those, and formats it normally otherwise.

### Template

```django
{% load humanize %}
<p>Published {{ post.published|naturalday }}</p>
```

### Result

```django
<p>Published yesterday</p>
```

It compares dates, not moments, so anything at all on yesterday's calendar date reads as “yesterday”. When you want “3 hours ago”, reach for `naturaltime` instead.
