Hello there. I had question. I’m building a project for events that has two date fields (Start and End dates). I figured out how to manipulate the date formatting for the two fields so it displays it like this: July 12-16, 2020.
That works great except if the start and end dates cross over into a different month.
Start: July 12
End date: August 3
It outputs it as July 12-3, 2020. How can I fix it so that if the second field is a different month then to display that month?
Ideally the output would be July 12-13 if the months are the same and July 12-August 3, 2020 if the months are different.
Actually, neither did I, after this I went and updated a site that was going to break soon. I have something similar that has month, day and time (date/time picker). I didn’t account for changing years either 😛
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users