<?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: How to convert string variable to date? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226774#M40842</link>
    <description>&lt;P&gt;data have;&lt;BR /&gt;yearmonth='200801';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;format date yymmn6. date2 mmddyy10.;&lt;BR /&gt;set have;&lt;BR /&gt;date = input(put(yearmonth,$6.),yymmn6.);&lt;BR /&gt;date2 = intnx('month',date,0,'end');&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2015 16:44:34 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2015-09-22T16:44:34Z</dc:date>
    <item>
      <title>How to convert string variable to date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226621#M40810</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
yearmonth='200801';
run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What is the best way to have same variable as date?&lt;/P&gt;
&lt;P&gt;I mean it must be shown as 200801 again, but in date format.&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;</description>
      <pubDate>Mon, 21 Sep 2015 18:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226621#M40810</guid>
      <dc:creator>o_p</dc:creator>
      <dc:date>2015-09-21T18:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string variable to date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226626#M40811</link>
      <description>&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;yearmonth2=input(yearmonth,yymmn6.);&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226626#M40811</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-09-21T18:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string variable to date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226631#M40812</link>
      <description>&lt;P&gt;And use&lt;/P&gt;&lt;P&gt;Format yearmonth2 yymm6.;&lt;/P&gt;&lt;P&gt;for display.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226631#M40812</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-21T18:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string variable to date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226634#M40813</link>
      <description>&lt;P&gt;Good point, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 19:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226634#M40813</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-09-21T19:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string variable to date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226646#M40817</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
yearmonth='200801';
yearmonth2=input(yearmonth,yymmn6.);
Format yearmonth2 yymm&lt;FONT color="#CC99FF"&gt;n&lt;/FONT&gt;6.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That's OK. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 20:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226646#M40817</guid>
      <dc:creator>o_p</dc:creator>
      <dc:date>2015-09-21T20:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string variable to date?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226774#M40842</link>
      <description>&lt;P&gt;data have;&lt;BR /&gt;yearmonth='200801';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;format date yymmn6. date2 mmddyy10.;&lt;BR /&gt;set have;&lt;BR /&gt;date = input(put(yearmonth,$6.),yymmn6.);&lt;BR /&gt;date2 = intnx('month',date,0,'end');&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 16:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-string-variable-to-date/m-p/226774#M40842</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-09-22T16:44:34Z</dc:date>
    </item>
  </channel>
</rss>

