<?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: re: character date tonumeric date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274167#M54673</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Then go for:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SASdate = input(cats(scan(myDate,3), scan(myDate, 2), scan(myDate, 4)), date9.);&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2016 17:57:08 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-05-31T17:57:08Z</dc:date>
    <item>
      <title>re: character date tonumeric date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274132#M54660</link>
      <description>&lt;P&gt;Hi...I am trying to convert a character date to numeric date. The character date is in the formate of weekdate17. I can't seem to get it converted.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 15:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274132#M54660</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2016-05-31T15:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: re: character date tonumeric date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274151#M54666</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SASdate = input(cats(substr(myDate,10, 2), substr(myDate, 6, 3), substr(myDate,14, 4)), date9.);&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 16:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274151#M54666</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-31T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: re: character date tonumeric date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274153#M54668</link>
      <description>&lt;P&gt;You may need to provide some actual examples. This example may give you a starting point.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data junk;
   x= 'Tuesday, June 1, 2016';
   y=input(substr(x,index(x,' ')),anydtdte15.);
   format y mmddyy10.;
run;


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2016 16:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274153#M54668</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-31T16:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: re: character date tonumeric date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274161#M54670</link>
      <description>&lt;P&gt;HI PGStats/Ballardw......Thanks for both your suggestions. I tried both of them and they gave me the exact same results with one problem. When the date had a single interger for the day number in the date ( Thu. May 7, 2015) , it produced a blank space otherwise worked perfect. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 17:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274161#M54670</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2016-05-31T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: re: character date tonumeric date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274165#M54672</link>
      <description>&lt;P&gt;We would have to see your data and the actual code you ran to see what was generating the space.&lt;/P&gt;
&lt;P&gt;I can't duplicate the issue with your Thu. May 7, 2015 example even inserting an additional space into the input between the month and the day of the month. It may be you have some sort of non-printable character or a double-byte conversion issue.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 17:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274165#M54672</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-31T17:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: re: character date tonumeric date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274167#M54673</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Then go for:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SASdate = input(cats(scan(myDate,3), scan(myDate, 2), scan(myDate, 4)), date9.);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 17:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-character-date-tonumeric-date/m-p/274167#M54673</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-31T17:57:08Z</dc:date>
    </item>
  </channel>
</rss>

