Is there a way to display only upcoming 'events' on my page based on their event_date?
<% for (let event of events){%>
<div class="card mb-3">
<div class="row">
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title"><%= event.event_name %> </h5>
<p class="text">Artist: <%= event.artist.username %></p>
<p class="text"><%= event.location %> </p>
<p class="text">
<small class="text-muted"><%= event.description %> </small>
</p>
<a class="btn btn-primary" href="/events/<%= event.id %>">View Event</a>
</div>
</div>
</div>
</div>
<% }%>
I currently have an index page that works well, but I would like to modify it to only show future-dated events. Is there a way to achieve this without using SQL?