<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Maintaing date format when exporting to XLSX in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Maintaing-date-format-when-exporting-to-XLSX/m-p/422748#M103945</link>
    <description>&lt;P&gt;How do I maintain date formats in Excel when using PROC EXPORT?&amp;nbsp; I have tried ODS Excel but need to maintain the default Excel styling and not use any SAS styling.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2017 15:53:06 GMT</pubDate>
    <dc:creator>tomcmacdonald</dc:creator>
    <dc:date>2017-12-20T15:53:06Z</dc:date>
    <item>
      <title>Maintaing date format when exporting to XLSX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maintaing-date-format-when-exporting-to-XLSX/m-p/422748#M103945</link>
      <description>&lt;P&gt;How do I maintain date formats in Excel when using PROC EXPORT?&amp;nbsp; I have tried ODS Excel but need to maintain the default Excel styling and not use any SAS styling.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 15:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maintaing-date-format-when-exporting-to-XLSX/m-p/422748#M103945</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2017-12-20T15:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaing date format when exporting to XLSX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maintaing-date-format-when-exporting-to-XLSX/m-p/422768#M103948</link>
      <description>&lt;P&gt;If I export a data set with SAS date9 format it seems to be fine using DMBS=XLSX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use ODS EXCEL and chose style=minimal to have little SAS formatting. You could also make your own style that had minimal to no changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=sashelp.stocks outfile='C:\_localdata\temp\test1.xlsx' dbms=xlsx replace; run;

ods excel file='C:\_localdata\temp\test2.xlsx' style=journal2;

proc print data=sashelp.stocks;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 16:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maintaing-date-format-when-exporting-to-XLSX/m-p/422768#M103948</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-20T16:27:22Z</dc:date>
    </item>
  </channel>
</rss>

