Fixing datetime format error closes #10

Fixes #10.