Omega Software interview question

Design algorithm that parses dates