Parse date. Closes #6