clean markup for dates and use consistent format