Adds date formatting.
Fixes bug in test.
Merge pull request #17 from ben-eb/feature/date

Adds date formatting.