How do you replicate the EE {date_heading} tag pair in Craft? I'm wondering how I would replicate the ExpressionEngine date_heading tag pair in Craft?

{date_heading}  {entry_date format="%Y %m %d"}  {/date_heading}



  The date heading can be used to show a heading at certain intervals.
  The interval can be set to show hourly, daily, weekly, monthly, or
  yearly.
Group:

Take a look at Craft's custom group filter. Your example could look like this:

{% set allEntries = craft.entries.section('blog').find() %}
{% set allEntriesByDay = allEntries | group('postDate') %}

{% for day, entriesInDay in allEntriesByDay %}
    &lt;h1&gt;{{ day }}&lt;/h1&gt;

    {% for entry in entriesInDay %}
        {{ entry.title }}
    {% endfor %}
{% endfor %}


.

Conditionals:

You could also save the last entries date and use conditionals:

{% set allEntries = craft.entries.section('blog') %}
{% set last_date = '' %}

{% for entry in allEntries %}
    {% if last_date &lt; entry.date %}
        This entry is the first of a new day
    {% endif %}

    {% set last_date = entry.date %}

    {{ entry.title }}
{% endfor %}