Empty date in options resulted in a error

because of milliseconds in the Date to string conversion.