Yes, that removed the errors but I am still missing something. I apologize!!!! Here is my code: data test; set ct.sample; offset = 0 - mdy(12,30,1889); triageb = dhms(int(triagebegan) + offset, 25567, 0, triagebegan-int(triagebegan)*24*60*60); format triageb datetime22.; run; Something is not working in the third line. When I run the code my value becomes 02Dec2022 and all the times are the same. As an example: 43615.576082 = 02Dec2022:03:06:56 43615.583186 = 02Dec2022:03:06:56 Liz
... View more