Handling string dates in the form yyyy-MM-dd better in toDate(val, mask)