Capital One interview question

Parsing a string and converting it into a date