I have a numeric version of datetime, like13DEC2021:10:28:00. I would like to convert it to character format like yyyy-mm-dd:hh:mm. Thanks for your help
proc format;
picture dtpic
other='%Y-%0m-%0d %0H:%0M:%0S' (datatype=datetime)
;
run;
data a;
a = datetime();
length b $30.;
b = put(a, dtpic.);
format a dtpic.;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!