Here is picture format for ymd hms with space instead of T between the two.
proc format;
picture ymdhms (default=19)
low-high='%Y-%0m-%0d %0H:%0M:%0s' (datatype=datetime)
other = 'unknown'
;
run;
3251 data _null_;
3252 now=datetime();
3253 put now ymdhms26.6 ;
3254 run;
2022-08-29 16:29:57.804000
... View more