I have this in a template
Weekdag1: >
{% set days = [“Zondag”, “Maandag”, “Dinsdag”, “Woensdag”, “Donderdag”, “Vrijdag”, “Zaterdag”] %}
{{ (as_timestamp(now())+(606024))|timestamp_custom(’%A’) }}
But the day of the week is displayed in English instead of Dutch.
What am I missing here?
petro
(Petro)
2
You aren’t using days at all, where did you copy this template from?
I copied it from a large template which displayed the current day (which working) but now I need the day of tomorrow
petro
(Petro)
4
I have a feeling your other template isn’t correct either, can you please post it?
To get today:
{% set days = ["Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag", "Zondag"] %}
{{ days[now().weekday()] }}
tomorrow:
{% set days = ["Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag", "Zondag"] %}
{{ days[(now()+timedelta(days=1)).weekday()] }}
1 Like
klacol
5