Custom date field in table OPPOR (Sage X3)

SOLVED

I added a custom date field to a table in Sage X3 (OPPOR).  

I have added the field to the table and class, I have also added the AM code to the SPE.  After validation I enter a value in the field on the screen, when exiting the field, the value reverts back to a blank value. Any ideas why this does not work for date fields?