How to add n-days to twig date format within a for-loop?
问题 I'm working with twig and got the date and format working. I have a start date (let's say todays day) and I'd like to print every day into a table cell. I have my date field in the var datum and I'm able to add 1 day with this. it's working. {% set datum = date(current_user.cwmon)|date_modify("+1 day")|date('D d.m.y') %} when I put this into a for loop, I get not the answer I'd like to. the code itself: {% for j in 0..6 %} {% set datum = date(current_user.cwmon)|date_modify("+1 day")|date('D