**Explanations:**
- the series "is_*_of" was created 'cos it's easier write: `{% if 10|is_day_of:date and user %}` than write: `{% ifequal date.day 10 %}{% if user %}...`
- the series "inc/dec" is not complete, but can the extended to day, hour, minute, etc as you needs. It's util to inc 10 months since 05/31/2006 by example and get a 2007's date :)
**Setup:**
Insert the snippet into an_app/templatetags/datetimeutils.py.
**Use in template:**
`{% load datetimeutils %}` and use filters as following:
- `{{ 30|is_day_of:a_date_time_variable }}`
- `{{ 11|is_month_of:a_date_time_variable }}`
- `{{ 2006|is_year_of:a_date_time_variable }}`
- `{{ 58|is_minute_of:a_date_time_variable }}`
- `{{ 23|is_hour_of:a_date_time_variable }}`
- `{{ a_date_time_variable|dec_year:2 }}`
- `{{ a_date_time_variable|dec_month:2 }}`
- `{{ a_date_time_variable|inc_year:2 }}`
- `{{ a_date_time_variable|inc_month:2 }}`
- date
- time
- template-filters