{% if item.type in ['DateField', 'DateTimeField'] %}
{{ item.label(class=theme.form.date_label_class, style=theme.form.date_label_style) }}
{% if item.errors %}
{% include 'form/formError.html' %}
{% else %}
{{ item(class=theme.form.date_class, style=theme.form.date_style, type=theme.form.date_type) }}
{% endif %}
{% endif %}