<?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: Help with date informats in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141448#M2228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data test;
myDateStr = "25 December 2014";
format myDate yymmdd10.;
myDate=input(prxchange('s/\s+(\w\w\w)\w+\s+/$1/o',-1,myDateStr),date11.);
run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 15:23:16 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-07-30T15:23:16Z</dc:date>
    <item>
      <title>Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141434#M2214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a text field with dates formatted as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;25 December 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What informat is appropriate for that string?&amp;nbsp; I have tried ANYDTDTEw. to no avail.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no informat is available, what is my best recourse?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 17:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141434#M2214</guid>
      <dc:creator>KAZ</dc:creator>
      <dc:date>2014-07-29T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141435#M2215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input myDate &amp;amp; :anydtdte21.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format myDate yymmdd10.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;25 December 2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=test; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget the ampersand so that the string being converted is not merely "25" but "25 December 2014"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141435#M2215</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-07-29T18:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141436#M2216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct, I don't believe there is such an informat. Here is one way to convert your date:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;format&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;invalue&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; mon&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'December'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;12&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; old_date=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'25 December 2014'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; new_date=mdy(input(scan(old_date,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: white;"&gt;mon.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;),input(scan(old_date,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: white;"&gt;best.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;),input(scan(old_date,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: white;"&gt;best.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; new_date &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: white;"&gt;date9.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; new_date=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;Of course, you need to beef up the proc format to cover all 12 month and all of the possible variants (caps, short name etc.).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;Haikuo &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;Oops, Guess PG is correct!&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141436#M2216</guid>
      <dc:creator>haikuobian</dc:creator>
      <dc:date>2014-07-29T18:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141437#M2217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&amp;nbsp; I tried the approach recommended by PGstats, but I get a null value.&amp;nbsp; The format/mdy(input()) combo works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141437#M2217</guid>
      <dc:creator>KAZ</dc:creator>
      <dc:date>2014-07-29T18:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141438#M2218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your code and/or data to figure out what is going wrong. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 19:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141438#M2218</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-07-29T19:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141439#M2219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I literally cut and pasted your code from above and ran it.&amp;nbsp; The data set work.test has 1 observation but myDate is null (myDate = .).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log gives no errors or warnings.&amp;nbsp; I'm running SAS 9.3 TS Level 1M2 on Windows 64 bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 19:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141439#M2219</guid>
      <dc:creator>KAZ</dc:creator>
      <dc:date>2014-07-29T19:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141440#M2220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PG,&lt;/P&gt;&lt;P&gt;I have both 9.3M2 and 9.4, it only works on 9.4. I would consider this as an upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 19:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141440#M2220</guid>
      <dc:creator>haikuobian</dc:creator>
      <dc:date>2014-07-29T19:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141441#M2221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running 9.4 on Windows 32bits, but according to SAS there were no changes to SAS informats in version 9.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;myDateStr = "25 December 2014";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format myDate yymmdd10.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;myDate = input (myDateStr, anydtdte21.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=test; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you still get a null value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141441#M2221</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-07-29T20:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141442#M2222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That settles it. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141442#M2222</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-07-29T20:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141443#M2223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, still null.&amp;nbsp; thanks for the 9.3 work around hiakuobian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141443#M2223</guid>
      <dc:creator>KAZ</dc:creator>
      <dc:date>2014-07-29T20:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141444#M2224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try converting the spaces to hyphens.&amp;nbsp; That should work on earlier versions of SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cdate='25 December 2014';&lt;/P&gt;&lt;P&gt;date=input(tranwrd(trim(cdate),' ','-'),&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;ANYDTDTE20.);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 00:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141444#M2224</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-30T00:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141445#M2225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;National Language Support informat NLDATE. might also work in 9.3 when you specify that the date is in British format. Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;options locale=en_GB;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;myDateStr = "25 December 2014";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format myDate yymmdd10.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;myDate = input (myDateStr, nldate21.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;options locale=en_US;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=test; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 01:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141445#M2225</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-07-30T01:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141446#M2226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;myDateStr = "25 December 2014";&lt;/P&gt;&lt;P&gt;myDate = input(catt(scan(mydatestr,1),substr(scan(mydatestr,2),1,3),scan(mydatestr,3)), date9.);&lt;/P&gt;&lt;P&gt;format myDate WORDDATX.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=test;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 03:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141446#M2226</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-30T03:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141447#M2227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all.&amp;nbsp; There are now a few workable solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using an infile specification in a datastep, so would prefer to use a date informat rather than reading in the data as a string, and then using input() to convert to a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG, the NLDATE informat does indeed work in the GB locale.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 14:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141447#M2227</guid>
      <dc:creator>KAZ</dc:creator>
      <dc:date>2014-07-30T14:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date informats</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141448#M2228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data test;
myDateStr = "25 December 2014";
format myDate yymmdd10.;
myDate=input(prxchange('s/\s+(\w\w\w)\w+\s+/$1/o',-1,myDateStr),date11.);
run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Help-with-date-informats/m-p/141448#M2228</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-30T15:23:16Z</dc:date>
    </item>
  </channel>
</rss>

