{% set classes = [
  'c-date',
  modifier_classes ? modifier_classes : '',
]|join(' ')|trim %}

<div {{ add_attributes({ 'class': classes }) }}>
  {% if date_format == 'long-date' %}
    {% include '@global/date-formats/long-date.twig' %}
  {% elseif date_format == 'long-datetime' %}
    {% include '@global/date-formats/long-datetime.twig' %}
  {% elseif date_format == 'medium-date' %}
    {% include '@global/date-formats/medium-date.twig' %}
  {% elseif date_format == 'medium-datetime' %}
    {% include '@global/date-formats/medium-datetime.twig' %}
  {% elseif date_format == 'short-date' %}
    {% include '@global/date-formats/short-date.twig' %}
  {% elseif date_format == 'short-datetime' %}
    {% include '@global/date-formats/short-datetime.twig' %}
  {% else %}
    {{ date_content }}
  {% endif %}
</div>
