Good day!

I display the day of the week on the site {{ now|date("l") }}

How to change for example Monday to Mondays (on Mondays)?

Thanks in advance :)

  • 2
    Are you asking how to output the day of the week as plural? Jan 18 '20 at 17:31

It looks like you're asking how to add a letter 's' to the day. So how about using

{{ now|date("l") }}s

You'd use the defaultWeekStartDay setting in your config/general.php -> https://docs.craftcms.com/v3/config/config-settings.html#defaultweekstartday

  • Please tell me exactly how you can change the example: on Wednesdays using this setting?
    – paveell
    Jan 18 '20 at 14:32
  • Sorry, I completely misread your question. It sounds like you're asking for how to display the days in plural form? Jan 18 '20 at 21:45
  • yes: on Wednesdays, Thursdays, Saturdays, etc.
    – paveell
    Jan 19 '20 at 10:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.