<?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 Re: Imported Excel Date being read by SAS as 0? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Imported-Excel-Date-being-read-by-SAS-as-0/m-p/119589#M32975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;datepart() -&amp;gt; converts DATETIME variables to date variables&lt;/P&gt;&lt;P&gt;year()-&amp;gt; extracts year from date variable&lt;/P&gt;&lt;P&gt;month()-&amp;gt; extracts month from date variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YYMMN6. format will change the format from date9. (01Jan2012) to 201206.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format your_date yymmn6.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 15:42:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-08-22T15:42:24Z</dc:date>
    <item>
      <title>Imported Excel Date being read by SAS as 0?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Imported-Excel-Date-being-read-by-SAS-as-0/m-p/119588#M32974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imported an excel workbook that contains dates. SAS imported them using the format date9. However, when I go to use the datepart function, I get 0 for every observation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help in getting SAS to read the dates correctly? I need to extract the year and month of each entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 15:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Imported-Excel-Date-being-read-by-SAS-as-0/m-p/119588#M32974</guid>
      <dc:creator>pbravo</dc:creator>
      <dc:date>2013-08-22T15:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Imported Excel Date being read by SAS as 0?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Imported-Excel-Date-being-read-by-SAS-as-0/m-p/119589#M32975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;datepart() -&amp;gt; converts DATETIME variables to date variables&lt;/P&gt;&lt;P&gt;year()-&amp;gt; extracts year from date variable&lt;/P&gt;&lt;P&gt;month()-&amp;gt; extracts month from date variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YYMMN6. format will change the format from date9. (01Jan2012) to 201206.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format your_date yymmn6.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 15:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Imported-Excel-Date-being-read-by-SAS-as-0/m-p/119589#M32975</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-08-22T15:42:24Z</dc:date>
    </item>
  </channel>
</rss>

