Change Date Format to UK Convention (Day/Month/Year)

Home Forums Calendar Products Events Calendar PRO Change Date Format to UK Convention (Day/Month/Year)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44031
    Christina
    Participant

    The site I’m developing is primarily for the UK. How can I change the dates so that they display with the DAY/MONTH/YEAR.

    Also, is it possible to add the actual day of the week it is in parenthesis after the date on the events list? For instance, I need it to look like this:

    25 March, 2013 (Monday)

    Thanks!

    #44034
    Barry
    Member

    If you change the date format for WordPress (Settings > General > Date Format) then The Events Calendar should respect that setting.

    You can also override the format within The Events Calendar, so if for instance you want to use something like 25 March 2013 across your site but 25 March 2013 (Monday) in the upcoming events list then you would need to override the upcoming events template. Before you do this, please do take the time to read up on the ins and outs of templating:

    The idea would be to customize your custom events/list.php template and wherever you encounter the following piece of code:

    echo tribe_get_start_date( null, false );

    You would replace it with:

    echo tribe_get_start_date( null, false, 'j M Y (l)' );

    #44247
    Christina
    Participant

    That worked beautifully, thank you!

    #44259
    Barry
    Member

    Great 🙂

    #978874
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Change Date Format to UK Convention (Day/Month/Year)’ is closed to new replies.