This wont work for dates before the epoch and it should take into account the 1904 flag too.
We are going from a perfectly valid date to an oadate that will later be transformed into a date again by parse_date_code.
Would you like me to change that behaviour so we don't risk loosing info going via the oadate?