<?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 Export date into yyyy.mm.dd in an csv file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-date-into-yyyy-mm-dd-in-an-csv-file/m-p/304931#M64987</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset of Date as below and I want to export it to csv&amp;nbsp;file with the format&lt;/P&gt;
&lt;P&gt;yyyy.mm.dd&lt;/P&gt;
&lt;P&gt;(you can ignore the time in the file).&lt;/P&gt;
&lt;P&gt;Could you please help me?&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;input date time;&lt;/P&gt;
&lt;P&gt;informat time time11.;&lt;/P&gt;
&lt;P&gt;format date date9. time time11.;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;20130730 4:00:00&lt;/P&gt;
&lt;P&gt;20130130 5:15:00&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2016 18:35:54 GMT</pubDate>
    <dc:creator>hhchenfx</dc:creator>
    <dc:date>2016-10-17T18:35:54Z</dc:date>
    <item>
      <title>Export date into yyyy.mm.dd in an csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-date-into-yyyy-mm-dd-in-an-csv-file/m-p/304931#M64987</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset of Date as below and I want to export it to csv&amp;nbsp;file with the format&lt;/P&gt;
&lt;P&gt;yyyy.mm.dd&lt;/P&gt;
&lt;P&gt;(you can ignore the time in the file).&lt;/P&gt;
&lt;P&gt;Could you please help me?&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;input date time;&lt;/P&gt;
&lt;P&gt;informat time time11.;&lt;/P&gt;
&lt;P&gt;format date date9. time time11.;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;20130730 4:00:00&lt;/P&gt;
&lt;P&gt;20130130 5:15:00&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 18:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-date-into-yyyy-mm-dd-in-an-csv-file/m-p/304931#M64987</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2016-10-17T18:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export date into yyyy.mm.dd in an scv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-date-into-yyyy-mm-dd-in-an-csv-file/m-p/304933#M64989</link>
      <description>&lt;P&gt;In order to input into a SAS date, you have to assign a yymmdd8. informat to variable date.&lt;/P&gt;
&lt;P&gt;You can then use yymmddp10. as output(display) format when you create the .csv.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 18:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-date-into-yyyy-mm-dd-in-an-csv-file/m-p/304933#M64989</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-16T18:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export date into yyyy.mm.dd in an scv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-date-into-yyyy-mm-dd-in-an-csv-file/m-p/304934#M64990</link>
      <description>&lt;P&gt;Apply format yymmddp10. And then use PROC EXPORT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data out;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;format date yymmddp10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc export data = out outfile='myfile.csv' DBMS=csv replace;run;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 18:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-date-into-yyyy-mm-dd-in-an-csv-file/m-p/304934#M64990</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-16T18:51:24Z</dc:date>
    </item>
  </channel>
</rss>

