0

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)
sstan
  • 35,425
  • 6
  • 48
  • 66
Saqib Ali
  • 3,953
  • 10
  • 55
  • 100

0 Answers0