Date formatting is applied after validation.
Please run your_instance.validateCells() after the instance is set.
your_instance.validateCells()