Add title with date in bold

Hello everyone, can someone help me how to change the day of the week from Sun to Saturday (German) in bold?
Here is the first line in the main menu, and the code:
Today is the {{ as_timestamp(now()) | timestamp_custom(β€˜%a.%d.%m.%Y’) }}

Thank you very much!!!


Well 26 May is Sunday so why do you want it to say Saturday?

I will print only the day name with ** ** and them the rest of the date without the day name.

** {{  as_timestamp(now()) | timestamp_custom(β€˜%a’) }} ** {{ as_timestamp(now()) | timestamp_custom(β€˜%d.%m.%Y’)}}

I suppose this should be work with your custom timestamp

Hello d13g0m0nt3s
thanks for your tip

! But I get an error with your line (64).

Heute ist der ** {{ as_timestamp(now()) | timestamp_custom(β€˜%a’) }} ** {{ as_timestamp(now()) | timestamp_custom(β€˜%d.%m.%Y’)}}

best regards

Change β€˜ for β€œ

** Heute ist der **  ** {{ as_timestamp(now()) | timestamp_custom("%a") }} ** {{ as_timestamp(now()) | timestamp_custom("%d.%m.%Y")}}

**Heute ist der** {{ as_timestamp(now()) | timestamp_custom('**%a**.%d.%m.%Y')}}```
1 Like

Thou i think he want a Capital (a), (A), for Monday

Hi, you can try this, feel free to change the days to whatever you want:

{% set wd = ["Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"]  %}
{{ wd[now().weekday()] + now().strftime(' %d.%m.%Y ')}}


It seems I missed the language bit. If you do not mind installing things, there’s also this:

Hello Arkixana, thanks a lot! Now it is working!!!

Heute ist der {% set wd = [β€œMontag”, β€œDienstag”, β€œMittwoch”, β€œDonnerstag”, β€œFreitag”, β€œSamstag”, β€œSonntag”] %}
{{ wd[now().weekday()] + now().strftime(’ %d.%m.%Y ')}}

Best regards, and have a nice weekend!!!

1 Like