I am trying to iterate all dates in twig
I have tried using this:
{% for x in range(startDate|date('U'), endDate|date('U'), 86400 ) %}
{{ x|date('m/d') }}
{% endfor %}
It worked in some dates. but if my startDate is 10/01/2015 and endDate is 10/31/2015 10/25 is displayed twice.
the scenario can be replicated on octobers of any year on 4th sundays
I don't know if it's only me that can replicate this.
Is there any other way to iterate all dates in range in twig?