parseDateFromString

Parses a date of the form YYYY-MM-DD, like 2016-01-10 for 10th Jan.