Add option to allow specifying the date format

Fixes #43
Merge pull request #46 from seegno/enhancement/add-date-format-option

Add option to allow specifying the date format