Hi Team,
We have bill_date field data type is varchar and it contains 2 formats of data
- 20180827T120100.000 GMT --- for few records
- 3/21/2019 12:00 AM --- for few records
We have to convert these data in MM\DD\YYYY format in RPD, issue we are facing is
If we use below date conversion:
TO_DATETIME (substring ("Bill"."Date" from 1 for 8), 'YYYY/MM/DD')
Then it will consider
20180827
3/21/201
Error:
[nQSError: 17001] Oracle Error code: 1843, message: ORA-01843: not a valid month at OCI call OCIStmtFetch. (HY000)
TO_DATETIME (substring ("Bill"."Date" from 1 for 10), 'YYYY/MM/DD')
Then it will consider
20180827T1
3/21/2019
Error :
[nQSError: 17001] Oracle Error code: 1861, message: ORA-01861: literal does not match format string at OCI call OCIStmtFetch. (HY000)
Version : OBIEE 12c
How to handle format issue can someone assist.
Thanks,