djangosnippets.org: Latest snippets tagged with 'years'https://djangosnippets.org/tags/years/2014-03-22T04:43:20.965085-05:00Template tag and filter for displaying number of years since
2014-03-22T04:43:20.965085-05:00tgandorhttps://djangosnippets.org/snippets/3037/<p>Because {% now "Y"|add:"-2005" %} - etc. doesn't work, you can use the above in your template like:</p>
<p>We have {{ 2000|since }} years of experience.</p>
<p>or:</p>
<p>Serving our customers with passion for more than {% years_since 2005 %} years.</p>
Freely redistributable