title: SAS - Custom Date Format - YYYYMMDDhhmmss
body: <p>I need to add a current date to the output I am exporting from SAS in the following format: <strong>filename_YYYYMMDDhhmmss.csv</strong></p>
  
  <p>I am creating a macro variable the following way: </p>
  
  <pre><code>%let date_human = %sysfunc(today(), YYYYMMDDn8.);
  </code></pre>
  
  <p>Does anybody know how to create a custom format for the date I have got? datetime20. gives an incorrect one. </p>
  
  <p>Thank you. </p>