Remove not needed code from parseDate.