Old fashioned string handling? data _null_; myDttm = datetime(); db2ts = cats(put(datepart(myDttm), yymmdd10.), "-", tranwrd(put(timepart(myDttm), tod9.), ":", "."), ".", substr(put(timepart(myDttm), mmss15.6), 10, 6)); put db2ts; run; 2014-05-08-11.30.12.012000
... View more