<?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 Converting a string into a date SAS enterprise guide in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-a-string-into-a-date-SAS-enterprise-guide/m-p/304794#M64898</link>
    <description>&lt;P&gt;I have a column in a data set that has dates in a string format YYYY-MM-DD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I convert this into a date column?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2016 20:43:26 GMT</pubDate>
    <dc:creator>sheller</dc:creator>
    <dc:date>2016-10-14T20:43:26Z</dc:date>
    <item>
      <title>Converting a string into a date SAS enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-a-string-into-a-date-SAS-enterprise-guide/m-p/304794#M64898</link>
      <description>&lt;P&gt;I have a column in a data set that has dates in a string format YYYY-MM-DD.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I convert this into a date column?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 20:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-a-string-into-a-date-SAS-enterprise-guide/m-p/304794#M64898</guid>
      <dc:creator>sheller</dc:creator>
      <dc:date>2016-10-14T20:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a string into a date SAS enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-a-string-into-a-date-SAS-enterprise-guide/m-p/304795#M64899</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;newvar = input(oldvar,yymmdd10.);
format newvar yymmddd10.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Oct 2016 20:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-a-string-into-a-date-SAS-enterprise-guide/m-p/304795#M64899</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-14T20:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a string into a date SAS enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-a-string-into-a-date-SAS-enterprise-guide/m-p/304809#M64907</link>
      <description>&lt;P&gt;The code provided should have worked so either your data isn't as specified or you did something wrong. How did you use the code provided? In a query builder or as a data step? What did your log say?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Verify the type and format of your variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run a proc contents and post the results for that variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
length x $10.;
x="2016-10-12";
y=input(x, yymmdd10.);
format y date9.;
run;

proc print data=test;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 22:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-a-string-into-a-date-SAS-enterprise-guide/m-p/304809#M64907</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-14T22:09:16Z</dc:date>
    </item>
  </channel>
</rss>

