I made a copy of the table, changing the two date columns to be NVARCAR (10). Loaded the copy with test data and reran the program.

No effect.