Dear All,
in my source data I have a field that I need to convert to Date.
My field mask is DDMMYYSerialnumbe and represents barcode.
I have used TO_TIMESTAMP and SUBSTRING
TO_TIMESTAMP(SUBSTRING(BSEG.ZUONR,0,2)||.||SUBSTRING(BSEG.ZUONR,2,2)||.||20||SUBSTRING(BSEG.ZUONR, 4, 2), DD.MM.YYYY)
Sometimes however bardode has incorrect format. Can I have a function that will convert to date if format is ok and leave NULL is format is not ok?