Empty date in options resulted in a error

because of milliseconds in the Date to string conversion.
Merge pull request #18 from basdp/patch-1

Empty date in options resulted in a error