<?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: Correct date with swapped year and day values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Correct-date-with-swapped-year-and-day-values/m-p/224358#M40325</link>
    <description>It does not seem possible to edit replies on a cell phone.</description>
    <pubDate>Sat, 05 Sep 2015 16:13:13 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-09-05T16:13:13Z</dc:date>
    <item>
      <title>Correct date with swapped year and day values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-date-with-swapped-year-and-day-values/m-p/224215#M40321</link>
      <description>&lt;P&gt;This question was recently posted on stackoverflow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with a dataset containing a date variable with the format MMDDYY10.. The problem is, that the day, month and the year have been swapped.&lt;/P&gt;&lt;P&gt;The data set as it looks now:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Obs Date
1   11/01/1931
2   11/06/1930
3   12/02/2003
4   12/07/2018&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What I would like is a date variable with the format DDMMYY10., or a similar:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Obs Date
1   31/01/2011
2   30/06/2011
3   03/02/2012
4   18/07/2012&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Observation 1 is hence written as the 1st of November 1931, but really it is the 31st of January 2011.&lt;/P&gt;&lt;P&gt;Does anyone know how I can change this?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2015 14:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-date-with-swapped-year-and-day-values/m-p/224215#M40321</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-09-02T14:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Correct date with swapped year and day values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-date-with-swapped-year-and-day-values/m-p/224219#M40322</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
  input olddate mmddyy10.;
  newdate = input(put(olddate,mmddyy6.),yymmdd6.);
  format olddate newdate yymmdd10. ;
  put (olddate newdate) (=);
cards;
11/01/1931
11/06/1930
12/02/2003
12/07/2018
;;;;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Sep 2015 15:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-date-with-swapped-year-and-day-values/m-p/224219#M40322</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-09-02T15:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Correct date with swapped year and day values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-date-with-swapped-year-and-day-values/m-p/224357#M40324</link>
      <description>I am typing this on cell phone. I noticed that the code formatting did display in chrome browser on my cell phone.</description>
      <pubDate>Sat, 05 Sep 2015 16:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-date-with-swapped-year-and-day-values/m-p/224357#M40324</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-09-05T16:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Correct date with swapped year and day values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-date-with-swapped-year-and-day-values/m-p/224358#M40325</link>
      <description>It does not seem possible to edit replies on a cell phone.</description>
      <pubDate>Sat, 05 Sep 2015 16:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-date-with-swapped-year-and-day-values/m-p/224358#M40325</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-09-05T16:13:13Z</dc:date>
    </item>
  </channel>
</rss>

