I have a legacy IBM DB2 database table that contains lots of records of phone calls. It has columns for ID, customer number, employee who took the call, etc. The date/time for each call is kept in a pair of columns, ROSDAT and ROSTIM. ROSDAT is an 8 byte numeric column, and ROSTIM is a 6 byte numeric. Example:
ROSDAT ROSTIM
20111006 163243
20111007 012335
Run Code Online (Sandbox Code Playgroud)
So for the first row the date is 2011-10-06, and the time is 16:32:43. There …