I have events that may be one-day or multi-day. I want to get the display of the date to be less redundant. For the multi-day events, when showing start and end date, I'm currently getting May 7, 2014-May 10, 2014. What my client wants is May 7-May 10, 2014. I can also see the need for May 7-10, 2014.

I know I can mess with this in the view by formatting start date and end date separately, but I have many one-day events that should not display an end date and those currently work correctly and would break if I use this logic. Is there a way to format this without the redundancy?

Any thoughts as to why the year repeats? It would be nice to have an option that keeps the month and/or year from repeating if there isn't a way to do this in the date formats.

Comments

mastoll’s picture

This is exactly my question! Does anyone have thoughts on this?

mastoll’s picture

I think I should be able to do this using views PHP and a global php field in my view. In the php, I would compare the start date to the end date, and if they are the same, I would make the end date null or empty. But I can't figure out the PHP.

Any ideas?