<?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: Week date input problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Week-date-input-problem/m-p/456510#M115637</link>
    <description>&lt;P&gt;You only have dates, so a datetime format won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The anydtdte informat can read a written (US style) date:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input date anydtdte30.;
format date yymmddd10.;
cards;
march 31,2018
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need to remove the weekday first.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2018 13:24:24 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-04-23T13:24:24Z</dc:date>
    <item>
      <title>Week date input problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Week-date-input-problem/m-p/456503#M115634</link>
      <description>&lt;P&gt;Please advise how to readin following week date.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Test;
input weekdate ; 
format weekdate	DTWKDATX25.;  
datalines; 
Saturday, March 31, 2018
Monday April 2, 2018
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Week-date-input-problem/m-p/456503#M115634</guid>
      <dc:creator>emrancaan</dc:creator>
      <dc:date>2018-04-23T13:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Week date input problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Week-date-input-problem/m-p/456510#M115637</link>
      <description>&lt;P&gt;You only have dates, so a datetime format won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The anydtdte informat can read a written (US style) date:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input date anydtdte30.;
format date yymmddd10.;
cards;
march 31,2018
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need to remove the weekday first.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Week-date-input-problem/m-p/456510#M115637</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-23T13:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Week date input problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Week-date-input-problem/m-p/456520#M115641</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to read &lt;STRONG&gt;Saturday March 31, 2018&lt;/STRONG&gt; and store it in date type variable as it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Week-date-input-problem/m-p/456520#M115641</guid>
      <dc:creator>emrancaan</dc:creator>
      <dc:date>2018-04-23T13:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Week date input problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Week-date-input-problem/m-p/456525#M115644</link>
      <description>&lt;P&gt;You need to remove the redundant weekday first with substr(), then anydtdte will recognize the date:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input datestr $30.;
i = index(datestr,' ');
date = input(substr(datestr,i),anydtdte30.);
drop i;
format date weekdate30.;
cards;
Saturday March 31, 2018
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Week-date-input-problem/m-p/456525#M115644</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-23T13:43:49Z</dc:date>
    </item>
  </channel>
</rss>

