<?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: Reading in Date: MDDYYYY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525097#M142862</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212034"&gt;@pchappus&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is the only way to read in a date that comes through with varying lengths for the month is to read it in as a string first and then change it to a date once it is read in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Nope.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 16:20:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-01-07T16:20:49Z</dc:date>
    <item>
      <title>Reading in Date: MDDYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525092#M142858</link>
      <description>&lt;P&gt;Is the only way to read in a date that comes through with varying lengths for the month is to read it in as a string first and then change it to a date once it is read in?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525092#M142858</guid>
      <dc:creator>pchappus</dc:creator>
      <dc:date>2019-01-07T16:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in Date: MDDYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525093#M142859</link>
      <description>&lt;P&gt;Can you post an example of what your values are to avoid assumptions&lt;/P&gt;
&lt;P&gt;&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/212034"&gt;@pchappus&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is the only way to read in a date that comes through with varying lengths for the month is to read it in as a string first and then change it to a date once it is read in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525093#M142859</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-07T16:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in Date: MDDYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525094#M142860</link>
      <description>&lt;P&gt;Post an example please&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525094#M142860</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-07T16:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in Date: MDDYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525097#M142862</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212034"&gt;@pchappus&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is the only way to read in a date that comes through with varying lengths for the month is to read it in as a string first and then change it to a date once it is read in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Nope.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525097#M142862</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-07T16:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in Date: MDDYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525122#M142870</link>
      <description>&lt;P&gt;I read a fair amount of data from CSV files with a data step that usually contains one or more date variables. Unless by "varying lengths for the month" you mean Jan Janu etc then the mmddyy10. informat handles most variations nicely except for a 6 digit without / delimiters.&lt;/P&gt;
&lt;PRE&gt;data example;
   informat date mmddyy10.;
   input date;
   format date date9.;
datalines;
01/01/2019
1/1/2019
01/1/2019
1/01/2019
01012019
1012019
112019
;
run;&lt;/PRE&gt;
&lt;P&gt;All except the last value will return 01JAN2019. The last assumes the year is only 2 digits because that 6 digit is subject to way to many interpretations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 17:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525122#M142870</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-07T17:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in Date: MDDYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525123#M142871</link>
      <description>&lt;P&gt;I actually ended up getting it to work. I used MMDDYY8. and it seemed to realized if the month was a Jan-Sept and added the leading zero.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 17:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-in-Date-MDDYYYY/m-p/525123#M142871</guid>
      <dc:creator>pchappus</dc:creator>
      <dc:date>2019-01-07T17:32:47Z</dc:date>
    </item>
  </channel>
</rss>

