<?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: Mixed Dates to YYYY-MM-DD in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Mixed-Dates-to-YYYY-MM-DD/m-p/613665#M179242</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Raw_Date ANYDTDTE.;
Raw_Date_New=put(Raw_Date,yymmddd10.);

put Raw_Date_New =;
cards;
01 NOV 2019
01-NOV-19
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; Raw_Date_New=2020-11-01
 Raw_Date_New=2019-11-01&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Dec 2019 02:55:34 GMT</pubDate>
    <dc:creator>r_behata</dc:creator>
    <dc:date>2019-12-24T02:55:34Z</dc:date>
    <item>
      <title>Mixed Dates to YYYY-MM-DD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mixed-Dates-to-YYYY-MM-DD/m-p/613644#M179235</link>
      <description>&lt;P&gt;I'm looking for an efficient way to convert a column that has mixed dates to&amp;nbsp;YYYY-MM-DD.&lt;/P&gt;&lt;P&gt;Your help is aprreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Raw_Date&lt;/P&gt;&lt;P&gt;01 NOV 2019&lt;/P&gt;&lt;P&gt;01-NOV-19&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corrected_Date&lt;/P&gt;&lt;P&gt;2019-11-01&lt;/P&gt;&lt;P&gt;2019-11-01&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 23:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mixed-Dates-to-YYYY-MM-DD/m-p/613644#M179235</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2019-12-23T23:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Dates to YYYY-MM-DD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mixed-Dates-to-YYYY-MM-DD/m-p/613645#M179236</link>
      <description>&lt;P&gt;Hi, For your sample Raw data , date11 is a natural informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*reading as raw data*/
data have;
input date date11.;
format date yymmdd10.;
cards;
01 NOV 2019
01-NOV-19
;
/*If it's a sas dataset*/
data have;
input date $11.;
cards;
01 NOV 2019
01-NOV-19
;

data want;
set have;
new_date=input(date,date11.);
format new_date yymmdd10.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Dec 2019 23:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mixed-Dates-to-YYYY-MM-DD/m-p/613645#M179236</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-23T23:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Dates to YYYY-MM-DD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mixed-Dates-to-YYYY-MM-DD/m-p/613665#M179242</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Raw_Date ANYDTDTE.;
Raw_Date_New=put(Raw_Date,yymmddd10.);

put Raw_Date_New =;
cards;
01 NOV 2019
01-NOV-19
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; Raw_Date_New=2020-11-01
 Raw_Date_New=2019-11-01&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Dec 2019 02:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mixed-Dates-to-YYYY-MM-DD/m-p/613665#M179242</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-12-24T02:55:34Z</dc:date>
    </item>
  </channel>
</rss>

