fix the date output