We have a DB that is storing the timestamp (in milliseconds since Unix Epoch, Jan 1st 1970) in a text column in a Oracle DB. We would like to get a Date('YYYY-MM-DD') from that
I tried the following but it doesn't seem to work:
TO_CHAR(cast(trunc(TO_NUMBER(created_on)/1000),'YYYY-MM-DD') as timestamp)