Correct date type