Safer parseing of dates and values.