<?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 Importing Text as Date and Ignore Time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-Text-as-Date-and-Ignore-Time/m-p/461029#M284774</link>
    <description>&lt;P&gt;We have a new data supplier that is sending us data with a combined Month_Entry_Date variable.&amp;nbsp; The variable has data which is month and time as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4/1/2018 12:00:00 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only want to read the date component (4/1/2018) and ignore the rest and have SAS make it a date variable. The user has tried this with EG to no success. I suspect this may need to be programmed instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;</description>
    <pubDate>Wed, 09 May 2018 14:05:46 GMT</pubDate>
    <dc:creator>BCNAV</dc:creator>
    <dc:date>2018-05-09T14:05:46Z</dc:date>
    <item>
      <title>Importing Text as Date and Ignore Time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Text-as-Date-and-Ignore-Time/m-p/461029#M284774</link>
      <description>&lt;P&gt;We have a new data supplier that is sending us data with a combined Month_Entry_Date variable.&amp;nbsp; The variable has data which is month and time as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4/1/2018 12:00:00 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only want to read the date component (4/1/2018) and ignore the rest and have SAS make it a date variable. The user has tried this with EG to no success. I suspect this may need to be programmed instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 14:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Text-as-Date-and-Ignore-Time/m-p/461029#M284774</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2018-05-09T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Text as Date and Ignore Time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Text-as-Date-and-Ignore-Time/m-p/461031#M284775</link>
      <description>&lt;P&gt;Import it as a date-time value, then apply the DATEPART function to it to make it a date value.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 14:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Text-as-Date-and-Ignore-Time/m-p/461031#M284775</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-05-09T14:08:07Z</dc:date>
    </item>
  </channel>
</rss>

