Hi. Your date time does not mean 13OCT2014 22:22:39, it means 13OCT2014 22:23:39. The following, while far from elegant, will get the job done, as long as the curious leading "1" doesn't change. data test; dtinput=put(1141013222329,best13.); dtstr1=substr(dtinput,2,6) ||" "|| substr(dtinput,8,2) ||":"|| substr(dtinput,10,2) || ":" || substr(dtinput,12,2); dtnumeric=input(dtstr1(anydtdtm19.); processInterval=intnx("dtminute",dtnumeric,30,"s"); format processInterval datetime; run; *Result processInterval = 13Oct14:22:53:29 ; Good luck in your project. -Joel.
... View more