<?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 I am trying to extract a date variable from a variable that date and time (eg 12Jul19:12:34:00) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-extract-a-date-variable-from-a-variable-that-date/m-p/636401#M189073</link>
    <description>&lt;P&gt;I am trying to extract a date variable(eg. 12Jul19) from a variable that date and time (eg. 12Jul19:12:34:00).&lt;/P&gt;&lt;P&gt;I have tried this code but it is not working .&lt;/P&gt;&lt;P&gt;DATA Mydata2;&lt;BR /&gt;SET Mydata;&lt;BR /&gt;date = MDY(Arrival);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sincerely appreciate your help.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 23:10:24 GMT</pubDate>
    <dc:creator>UcheOkoro</dc:creator>
    <dc:date>2020-03-31T23:10:24Z</dc:date>
    <item>
      <title>I am trying to extract a date variable from a variable that date and time (eg 12Jul19:12:34:00)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-extract-a-date-variable-from-a-variable-that-date/m-p/636401#M189073</link>
      <description>&lt;P&gt;I am trying to extract a date variable(eg. 12Jul19) from a variable that date and time (eg. 12Jul19:12:34:00).&lt;/P&gt;&lt;P&gt;I have tried this code but it is not working .&lt;/P&gt;&lt;P&gt;DATA Mydata2;&lt;BR /&gt;SET Mydata;&lt;BR /&gt;date = MDY(Arrival);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sincerely appreciate your help.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 23:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-extract-a-date-variable-from-a-variable-that-date/m-p/636401#M189073</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2020-03-31T23:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to extract a date variable from a variable that date and time (eg 12Jul19:12:34:00)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-extract-a-date-variable-from-a-variable-that-date/m-p/636403#M189074</link>
      <description>&lt;P&gt;Have you tried:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA Mydata2;
  SET Mydata;
  date = datepart(Arrival);
  format date date9.;
RUN;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 23:39:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-extract-a-date-variable-from-a-variable-that-date/m-p/636403#M189074</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2020-03-31T23:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to extract a date variable from a variable that date and time (eg 12Jul19:12:34:00)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-extract-a-date-variable-from-a-variable-that-date/m-p/636406#M189075</link>
      <description>&lt;P&gt;Thank you so much for your prompt and helpful answer.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 01:10:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-extract-a-date-variable-from-a-variable-that-date/m-p/636406#M189075</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2020-04-01T01:10:15Z</dc:date>
    </item>
  </channel>
</rss>

