Hi all,
I have a date which is represented by the number of milliseconds since January 01, 1970. I need to change this back to DATE format. Is there any built in function in DB2 to do the needed conversion ?
In Oracle i was able to do the conversion by the following statement.
select to_char(to_date('01/01/1970','mm/dd/yyyy'),'mm/dd/yyyy') + milliseconds/86400000) from dual;
Note: In the above sql statement, milliseconds is the no: of milliseconds of the desired date.