Ruby date parser exercise