make date custom datatype work