Add current class for future date
<p>I have a list of events that start and begin on different dates.</p>

<ol>
<li>04.12.2015–03.01.2016</li>
<li>08.01.2016–14.02.2016</li>
<li>26.02.2016–27.03.2016</li>
</ol>

<p>And I have a piece of code, that adds a current-event class for a single event if its between some dates.</p>

<pre><code>$startDate = get_post_meta('_event_start_date', true);
$endDate = get_post_meta('_event_end_date', true);
$currentDate = current_time( 'mysql' );

if ( ($currentDate &gt; $startDate) &amp;&amp; ($currentDate &lt; $endDate) ) {
    return 'current-event';
} else {
    return '';
}
</code></pre>

<p>This all works fine and does its job, but what I've encountered is that between two events there isn't any dates to compare. For example, if today's date is the 5th of January and the next event is starting at 8th of January, it doesn't add a current-event class to the future event. I guess I'd have to add another elseif statement to the code, but with what should I compare it with?</p>

<p>Just to bring out the case here, that I'd like to add the current-event class for only one future event.</p>