Removed unexpected </a> tag and fixed date bug

Removed unexpected  `</a>` tag, rearranged some lines, and fixed date bug.