datetime formats
My favourites:
%put%sysfunc(datetime(),B8601DT19);
%put %sysfunc(datetime(),is8601dt.);
Which give:
20121117T150358
2012-11-17T15:03:58
Full list: https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001263753.htm