BUG: Fix XlsxWriter always using `date_format`.

Since `datetime.datetime` derives from `datetime.date` the second
`if`-clause will always trigger, leading to the `num_format_str` being
overwritten by the `date_format`.