Fix the format of the dates