Only parse dates if one is provided.