@s_lassen wrote:
I think you can use the ymddttm26. informat - it is important to use the length also, as the informat will otherwise stop reading after the last decimal point.
Yes YMDDTTM works with wacky delimiters
data _null_;
length ts_alphanumeric $26;
do ts_alphanumeric = "2021-10-17-20.00.05.571907","2021-10-17T20:00:05.571907";
ts_notyet = input(ts_alphanumeric, E8601DT26.);
put _all_;
ts_notyet = input(ts_alphanumeric, ymddttm26.);
put _all_;
ts_notyet = input(ts_alphanumeric, ANYDTDTM26.);
format ts_notyet datetime25.6;
put _all_;
end;
run;
.
... View more