I want to render a date into the <span class="mr-3 text-danger date">
element using Dayjs. How do I go about doing this? I have dayjs imported from a CDN in a script tag at the bottom of the html document.
<!--This is my html code-->
<div class="d-flex event">
<span class="mr-3 text-danger date"></span>
<span class="text-danger">24°C, Fort Portal</span>
</div>