Title: Duration Time
Last modified: August 30, 2016

---

# Duration Time

 *  Resolved [narrowback](https://wordpress.org/support/users/narrowback/)
 * (@narrowback)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/duration-time/)
 * [http://www.irishcentersf.org/newicc/](http://www.irishcentersf.org/newicc/)
 * I’m having some trouble making the duration times, when end time specified, display
   on one line like other events with just start time specified. How can I keep 
   this on one line OR omit end time in this display so there is consistency across
   events?
 * [https://wordpress.org/plugins/the-events-calendar-shortcode/](https://wordpress.org/plugins/the-events-calendar-shortcode/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Brian Hogg](https://wordpress.org/support/users/brianhogg/)
 * (@brianhogg)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/duration-time/#post-6886323)
 * Hey narrowback,
 * You have a couple options: either use CSS like overflow:hidden; or another method
   to keep it on one line, or else filter out the end date. The easiest way I see
   is to add something like the following to your theme or a [functionality plugin](https://css-tricks.com/wordpress-functionality-plugins/)
   to strip off everything after the separator (ie. after the – dash):
 *     ```
       function ecs_remove_end_date( $date ) {
       	if ( strpos( $date, tribe_get_option( 'timeRangeSeparator', ' - ' ) ) !== FALSE ) {
       		$date = substr( $date, 0, strpos( $date, tribe_get_option( 'timeRangeSeparator', ' - ' ) ) );
       	}
       	return $date;
       }
       add_filter( 'ecs_event_list_details', 'ecs_remove_end_date' );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Duration Time’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar-shortcode/assets/icon-256x256.gif?rev
   =3023752)
 * [The Events Calendar Shortcode & Block](https://wordpress.org/plugins/the-events-calendar-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Brian Hogg](https://wordpress.org/support/users/brianhogg/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/duration-time/#post-6886323)
 * Status: resolved