Replace nth-occurence of a string with an html tag

I am trying to replace the second / of the following string with a
tag so that the year will break line

<span class="post-date">15/03/2024</span>

Is there any way to replace a character(or string in general) with an html tag, like the <br> tag?