<?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: How to convert mm/dd/yyyy into dd/mm/yyyy in SAS in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137218#M2074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I just unmarked your answer per your request and marked the one directly above as helpful - is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2014 16:36:32 GMT</pubDate>
    <dc:creator>Community_Help</dc:creator>
    <dc:date>2014-12-09T16:36:32Z</dc:date>
    <item>
      <title>How to convert mm/dd/yyyy into dd/mm/yyyy in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137212#M2068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Excel file dates in the form dd/mm/yyyy .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I infile it into SAS it orders the dates into mm/dd/yyyy, so how can I reorder it back?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, in Excel I have 31/12/2010, when I infile it to SAS it makes it 12/31/2010, so how to make it back to 31/12/2010, i.e, how to change the day's place with the month's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 00:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137212#M2068</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2014-12-05T00:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert mm/dd/yyyy into dd/mm/yyyy in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137213#M2069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apply the appropriate format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;format date ddmmyyd10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Here' s a list of formats by category, look for the one you want, ddmmyy, then there are two options:&lt;/P&gt;&lt;P&gt;ddmmyy and ddmmyyx - you want the x one because you want to specify a delimiter of slash (/).&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001263753.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001263753.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 00:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137213#M2069</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-05T00:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert mm/dd/yyyy into dd/mm/yyyy in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137214#M2070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually tried your method and I guess that in this situation its the most efficient&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I was wondering is it possible to change the places of specific numbers and/or letters with others?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 04:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137214#M2070</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2014-12-05T04:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert mm/dd/yyyy into dd/mm/yyyy in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137215#M2071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the short answer is NO. Dates, even when you read them from Excel are internally converted to the number of days since Jan 1, 1960. For example: &lt;/P&gt;&lt;P&gt;-2 internally stored would format as 30Dec1959&lt;/P&gt;&lt;P&gt;-1 ... as 31Dec1959&lt;/P&gt;&lt;P&gt;0 ... as 01Jan1960&lt;/P&gt;&lt;P&gt;1 ... as 02Jan1960&lt;/P&gt;&lt;P&gt;2 ... as 03Jan1960&lt;/P&gt;&lt;P&gt;3 ... as 04Jan1960&lt;/P&gt;&lt;P&gt;etc, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SAS does not store dates as a text string but as the internal number of days (both positive and negative) from Jan 1, 1960. So, when you use a different FORMAT, SAS displays the number as a readable date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, asking whether it's possible to switch certain numbers (such as month) for other numbers (such as days) doesn't make sense when you have imported your data into SAS formats. The way the number is internally stored is either a positive or negative number on a time line and doesn't really include "months" or "days" until you apply the format. Just for fun, try the WEEKDATE. or WORDDATE. formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 05:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137215#M2071</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-12-05T05:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert mm/dd/yyyy into dd/mm/yyyy in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137216#M2072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example of what you want it look like. There are many things possible using a custom format and/or parsing the parts of a date with the appropriate SAS functions. I would recommend strongly looking in the online help for the Date formats as there are way too many for me to list manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 16:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137216#M2072</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-12-05T16:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert mm/dd/yyyy into dd/mm/yyyy in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137217#M2073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry I wanted to put your answer as helpful (instead of mine, I didn't make any answer), could I somehow do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2014 01:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137217#M2073</guid>
      <dc:creator>ilikesas</dc:creator>
      <dc:date>2014-12-06T01:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert mm/dd/yyyy into dd/mm/yyyy in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137218#M2074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I just unmarked your answer per your request and marked the one directly above as helpful - is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 16:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-convert-mm-dd-yyyy-into-dd-mm-yyyy-in-SAS/m-p/137218#M2074</guid>
      <dc:creator>Community_Help</dc:creator>
      <dc:date>2014-12-09T16:36:32Z</dc:date>
    </item>
  </channel>
</rss>

