1

I am using Solspace Calendar. I would like to change the date format from Sunday, Monday to Sun, Mon Can anyone help me with this?

1

You can format the names with standard EE date formatting. try {day format="%j"}, as documented in the ExpressionEngine User Guide.

3
  • @user2121, in the future, I recommend referencing the Date Formatting Codes section on this nifty cheat sheet: ellislab.com/_user_guide_src_ee/_images/ee_quick_reference.png Oct 2 '13 at 23:46
  • Can you please guid me where exactly I can try this? I have tried to use it as following {exp:calendar:month day_format="%j%"} but it is not working.
    – user2121
    Oct 21 '13 at 9:39
  • The syntax is incorrect. 1st, it's %j, not %j%. 2nd, there is no day_format="" param for {exp:calendar:month}. Next, if you're looking to format each event's date (eg the start date), use {event_start_date format="%j"} within your {exp:calendar:month}. If you need to change the names of the weekdays in your calendar table's header (eg. S M T W T F S), you'll need to use the more flexible {exp:calendar:cal} with the variable options available within that tag pair. Please see the docs and advanced example in the Solspace documentation
    – Solspace
    Oct 21 '13 at 21:41

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.