<?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 convert excel date to excel general format in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-excel-date-to-excel-general-format-in-SAS/m-p/287308#M59088</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have data that is suppose to be a date in the format mmddyy in excel. I am able to get majority of it into sas and convert it properly apart from some. The observations i am have a problem with are the ones that the user just entered the year, leaving out the day and month. These convert to 0 . is there any way to get sas to convert these observations to the equivalent of general formate in excel? Thave attached a sceenshot of the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12780i391C6AB4FB094EAE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sas_q.PNG" title="sas_q.PNG" /&gt;</description>
    <pubDate>Tue, 26 Jul 2016 19:01:20 GMT</pubDate>
    <dc:creator>jcurran1289</dc:creator>
    <dc:date>2016-07-26T19:01:20Z</dc:date>
    <item>
      <title>convert excel date to excel general format in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-excel-date-to-excel-general-format-in-SAS/m-p/287308#M59088</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have data that is suppose to be a date in the format mmddyy in excel. I am able to get majority of it into sas and convert it properly apart from some. The observations i am have a problem with are the ones that the user just entered the year, leaving out the day and month. These convert to 0 . is there any way to get sas to convert these observations to the equivalent of general formate in excel? Thave attached a sceenshot of the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12780i391C6AB4FB094EAE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sas_q.PNG" title="sas_q.PNG" /&gt;</description>
      <pubDate>Tue, 26 Jul 2016 19:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-excel-date-to-excel-general-format-in-SAS/m-p/287308#M59088</guid>
      <dc:creator>jcurran1289</dc:creator>
      <dc:date>2016-07-26T19:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: convert excel date to excel general format in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-excel-date-to-excel-general-format-in-SAS/m-p/287352#M59103</link>
      <description>&lt;P&gt;The answer is no. In Excel, each value (cell) can have its own format. In SAS, formats are associated with variables, not individual values. A variable can be formatted as YEAR4. or MMDDYY10. , but not both. If you want to mix formats. convert your data to character.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 21:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-excel-date-to-excel-general-format-in-SAS/m-p/287352#M59103</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-07-26T21:42:49Z</dc:date>
    </item>
  </channel>
</rss>

