parse dates heuristically