Why is Heading tag Auto applied to Post data? [closed]

Your second h4 tag is again an opening tag.

This

echo '<h4>'.get_the_date().'<h4>';

should be this

echo '<h4>'.get_the_date().'</h4>';

tech