catch an exception parsing dates