<p>I ended up using this code.</p>

<pre><code>{% set upcoming = craft.entries.section('section').order('customDate')%}            

{% for entry in upcoming %} 
    {% if entry.customDate =='2018-10-12' %}    
        {{entry.title}}         
    {% endif %}
{% endfor %}
</code></pre>

<p>Works for now anyway.</p>

CC BY-SA 4.0
2018-09-11T02:16:25.940Z
if you want a specific year not just a specific day of the year you can do something like this `entry.customDate|date('Y') == '2018'`.
a-am
CC BY-SA 4.0
2018-09-08T10:32:30.503Z
2018-09-10T23:41:57.853Z
2018-09-10T23:41:57.853Z
Redbloc
<p>I've a list of entries, all with custom dates. 
Is there a way to show entries from a specific year, just using the custom date rather than the posted date?</p>

<p>Any help is much appreciated!</p>

CC BY-SA 4.0
2018-09-06T23:06:44.673Z
Are "custom dates" dates from a Date/Time custom field on the entries?
Brad Bell
CC BY-SA 4.0
2018-09-08T10:29:00.020Z
They are - sorry, should have been a bit clearer.
Redbloc
<entries><datetime><custom>
Displaying entries from a specific custom date year
# Displaying entries from a specific custom date year

(Asked by: username_0 on 2018-09-03)

I've a list of entries, all with custom dates.
Is there a way to show entries from a specific year, just using the custom date rather than the posted date?

Any help is much appreciated!

**Tags:** entries, datetime, custom
> **Comments:**
> **username_1**: Are "custom dates" dates from a Date/Time custom field on the entries?  
> **username_0**: They are - sorry, should have been a bit clearer.  

---

## 1 answers

### Answer by username_0 on 2018-09-08. Score: 1

I ended up using this code.
{% set upcoming = craft.entries.section('section').order('customDate')%}            

{% for entry in upcoming %} 
    {% if entry.customDate =='2018-10-12' %}    
        {{entry.title}}         
    {% endif %}
{% endfor %}

Works for now anyway.

> **Comments:**
> **username_2**: if you want a specific year not just a specific day of the year you can do something like this `entry.customDate|date('Y') == '2018'`.  

---

