Support

Home Forums Event Espresso Premium Displaying Day Of The Week

Displaying Day Of The Week

Posted: August 27, 2016 at 4:13 am


Phil Evans

August 27, 2016 at 4:13 am

Hi,

Is there a simple way of displaying the days of the weeks on events with different datetimes

e.g.

https://www.impactmh.org.uk/courses/pathways-recovery-leighton-buzzard-course-1/

http://screencast.com/t/sxbDmPJk

With thanks

Phil


Tony

  • Support Staff

August 29, 2016 at 7:06 am

Hi Phil,

EE uses the date format set within your sites general settings to output dates, so you can change this within:

Dashboard -> Settings -> General -> Date format.

Looks like your currently using F j, Y (default)

You can switch to custom and add an l (lower case L) to the beginning like this – http://take.ms/FdDkm

Save the settings and refresh the page, you’ll find the Day of the week is now shown… however, that format applies all over your site. Anywhere that outputs date will now likely use that format.

If that’s not something you want we have a filter you can use to change the format used only on that date list. Here is an example of a function you can use to change the format:

https://gist.github.com/Pebblo/3aac25e4507dd8d3fdeafaf0138a8bf5

You can add that to your themes functions.php file (preferably a child theme) or a Custom Functions Plugin


Phil Evans

August 29, 2016 at 7:11 am

Thanks Tony. Changing the date format did exactly what I needed.

Thanks

Phil


Tony

  • Support Staff

August 29, 2016 at 7:24 am

You’re most welcome, Phil.

The support post ‘Displaying Day Of The Week’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso