I found the reply helpful, but it is difficult to read the answer in current alignment. Hence, I am wring the same answer with proper alignment.
=================================================================================
data _NULL_; format dt datetime20. dt2 E8601DT20. ; dt=datetime(); dt2=dt; put dt= dt2=; txt=put(dt,datetime20.); txt2=put(dt2,E8601DT20.); put txt= txt2=; run;
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm
================================================================================
Thanking you,
Yours sincerely,
- Dr. Abhijeet Safai
... View more