title: How to compare date in template?
body: <p>I have model with datetime field:</p>
  
  <pre><code>class MyModel(models.Model):
      create_date = models.DateTimeField(default=datetime.now)
  </code></pre>
  
  <p>And I want to compare year from this dates with number:</p>
  
  <pre><code>{% for object in my_objects %}
      {% if object.create_date.year &gt; "2011" %}
          ...
      {% endif %}
  {% endfor %}
  </code></pre>
  
  <p>Is this correct?</p>