To prevent invalid date when trying to copy from different db type.