Changed && condition to || in parseDate().