correct date normalization