normalize dates