Format time to account for 12 hours along with AM or PM