<?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: Extract SAS date from character field which is DD-MM-YYYY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Extract-SAS-date-from-character-field-which-is-DD-MM-YYYY/m-p/571058#M161069</link>
    <description>&lt;P&gt;Is that the only portion in the character field? If so, INPUT is easy enough.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x = input(old_x, ddmmyy10.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you need to extract it from other text, you likely want regex or COMPRESS(). If you need help with the actual code, you'll need to provide some examples of your data otherwise what we write likely won't work for your data.&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/280354"&gt;@dsr001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;I need to Extract SAS date from character field which is in the form of DD-MM-YYYY.&lt;BR /&gt;Can someone help?&lt;BR /&gt;Thanks and Regards&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 19:05:42 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-03T19:05:42Z</dc:date>
    <item>
      <title>Extract SAS date from character field which is DD-MM-YYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-SAS-date-from-character-field-which-is-DD-MM-YYYY/m-p/571056#M161067</link>
      <description>Hi,&lt;BR /&gt;I need to Extract SAS date from character field which is in the form of DD-MM-YYYY.&lt;BR /&gt;Can someone help?&lt;BR /&gt;Thanks and Regards</description>
      <pubDate>Wed, 03 Jul 2019 19:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-SAS-date-from-character-field-which-is-DD-MM-YYYY/m-p/571056#M161067</guid>
      <dc:creator>dsr001</dc:creator>
      <dc:date>2019-07-03T19:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract SAS date from character field which is DD-MM-YYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-SAS-date-from-character-field-which-is-DD-MM-YYYY/m-p/571057#M161068</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data date;
date='02-07-2019';
sas_date=input(date,ddmmyy10.);
format sas_date ddmmyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jul 2019 19:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-SAS-date-from-character-field-which-is-DD-MM-YYYY/m-p/571057#M161068</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-07-03T19:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract SAS date from character field which is DD-MM-YYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-SAS-date-from-character-field-which-is-DD-MM-YYYY/m-p/571058#M161069</link>
      <description>&lt;P&gt;Is that the only portion in the character field? If so, INPUT is easy enough.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x = input(old_x, ddmmyy10.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you need to extract it from other text, you likely want regex or COMPRESS(). If you need help with the actual code, you'll need to provide some examples of your data otherwise what we write likely won't work for your data.&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/280354"&gt;@dsr001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;I need to Extract SAS date from character field which is in the form of DD-MM-YYYY.&lt;BR /&gt;Can someone help?&lt;BR /&gt;Thanks and Regards&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 19:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-SAS-date-from-character-field-which-is-DD-MM-YYYY/m-p/571058#M161069</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-03T19:05:42Z</dc:date>
    </item>
  </channel>
</rss>

