Is it possible to define your own datetime format? Or is there an existing format that I didn't find? My goal is "yyyy-mm-dd hh:mm:ss", for example, "2018-09-15 14:52:22". My example below prints a couple close options, but not exactly what I would like. And I'm actually more interested in writing this format to a csv file, if somehow that permits a different solution than printing. Thanks, Chris data a; mydt = '15sep2018 14:52:22'dt; proc print data=a; /* 1852642342 */ proc print data=a; format mydt e8601dt25.0; /* 2018-09-15T14:52:22 */ proc print data=a; format mydt nldatms.; /* 09/15/2018 14:52:22 */ run;
... View more