Cast string to date in specific format in SAP HANA



I think you just need to use ‘TO_VARCHAR’ and ‘TO_DATE’ functions.

SELECT TO_VARCHAR(TO_DATE(<your field>, 'YYYYMMDD'), 'YYYY-MM-DD') FROM <Table>
raja
Published on 19-Dec-2017 09:02:09
Advertisements