<?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: convert text to date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471959#M120939</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;data test;
  monthtext="January";
  month=month(input("01"||substr(monthtext,1,3)||"2000",date9.));
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;from stackoverflow:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/9300020/sas-format-full-month-name-to-integer" target="_blank"&gt;https://stackoverflow.com/questions/9300020/sas-format-full-month-name-to-integer&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 00:55:49 GMT</pubDate>
    <dc:creator>pau13rown</dc:creator>
    <dc:date>2018-06-21T00:55:49Z</dc:date>
    <item>
      <title>convert text to date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471944#M120928</link>
      <description>&lt;P&gt;I am a beginner. I&amp;nbsp;am trying to&amp;nbsp;used input to convert text to date, here is my function&lt;/P&gt;&lt;P&gt;input('Jul-17', MONYY5.)&lt;/P&gt;&lt;P&gt;The result is Jul01, same month but the year is wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 00:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471944#M120928</guid>
      <dc:creator>linc</dc:creator>
      <dc:date>2018-06-21T00:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: convert text to date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471947#M120930</link>
      <description>&lt;P&gt;5 is the length but &amp;nbsp;text is 6 characters. Remove the - &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can remove the dash with the COMPRESS() function if needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/205391"&gt;@linc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am a beginner. I&amp;nbsp;am trying to&amp;nbsp;used input to convert text to date, here is my function&lt;/P&gt;
&lt;P&gt;input('Jul-17', MONYY5.)&lt;/P&gt;
&lt;P&gt;The result is Jul01, same month but the year is wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please help&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 00:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471947#M120930</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-21T00:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: convert text to date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471948#M120931</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
date=input('Jul-17', MONYY7.);
format date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 00:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471948#M120931</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-21T00:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: convert text to date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471959#M120939</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;data test;
  monthtext="January";
  month=month(input("01"||substr(monthtext,1,3)||"2000",date9.));
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;from stackoverflow:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/9300020/sas-format-full-month-name-to-integer" target="_blank"&gt;https://stackoverflow.com/questions/9300020/sas-format-full-month-name-to-integer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 00:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471959#M120939</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-06-21T00:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: convert text to date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471960#M120940</link>
      <description>&lt;P&gt;great thanks, the result is perfect &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;input(compress('text',"-"),MONYY)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 00:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-text-to-date/m-p/471960#M120940</guid>
      <dc:creator>linc</dc:creator>
      <dc:date>2018-06-21T00:59:36Z</dc:date>
    </item>
  </channel>
</rss>

