Support » Plugin: Organic Custom Content » How to change the date format?

  • Resolved renoized

    (@renoized)


    I’ve been pulling my hair out trying to work out why the tour dates part of this extension wasn’t working but I’ve finally found it; the date format! I have two test dates saved on my site: 21/05/2018 and 10/06/2018, but only one of them is displaying because there is no 21st month.

    I’m not afraid to get my hands dirty, and I’ve dug around in the code for the plugin but I honestly can’t see any mm/dd/yyyy field or even anything that would set the date format. I’ve looked in the settings and the date format on my website is definitely set up correctly.

    Any help would be appreciated.

    • This topic was modified 1 year, 7 months ago by renoized.
    • This topic was modified 1 year, 7 months ago by renoized.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Solved!

    Changed the input type for the ‘tour date’ label to ‘date’ instead of text in post-type-tour-date.php

    Added “$new_format_date = date(” jS M y”, strtotime($tour_date));” to loop-tour-home.php

    and then changed $tour_date to %new_format_date where I wanted it to display.

Viewing 1 replies (of 1 total)
  • The topic ‘How to change the date format?’ is closed to new replies.