AM PM formatted datetime and tab issue