I am struggling to align heading and paragraph tags side by side in an inline format. Here is my attempt using bootstrap 4:
<div class="col-md-1 text-left">
<span class="d-inline">
<h2>
{{ event.formattedDate.slice(9, -15) }}
</h2>
</span>
<span class="d-inline">
<p>{{ event.formattedDate.slice(5, -17) }}</p>
<p>{{ event.formattedDate.slice(0, 3) }}</p>
</span>
</div>
However, my output looks like this instead: https://i.sstatic.net/GDgs5.png
Can anyone advise on how to achieve the desired layout?