<?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 date format in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/date-format/m-p/704780#M26178</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a two different date formats:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 07SEP03:00:00:00&lt;/P&gt;&lt;P&gt;2009-08-06 00:00:00.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to change it to:&lt;/P&gt;&lt;P&gt;09/07/2020&lt;/P&gt;&lt;P&gt;08/06/2009&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can I do it in sas?&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 16:11:34 GMT</pubDate>
    <dc:creator>Smitha9</dc:creator>
    <dc:date>2020-12-09T16:11:34Z</dc:date>
    <item>
      <title>date format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/date-format/m-p/704780#M26178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a two different date formats:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 07SEP03:00:00:00&lt;/P&gt;&lt;P&gt;2009-08-06 00:00:00.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to change it to:&lt;/P&gt;&lt;P&gt;09/07/2020&lt;/P&gt;&lt;P&gt;08/06/2009&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can I do it in sas?&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/date-format/m-p/704780#M26178</guid>
      <dc:creator>Smitha9</dc:creator>
      <dc:date>2020-12-09T16:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/date-format/m-p/704785#M26180</link>
      <description>&lt;P&gt;Neither of those is a date. Those are DATETIME values.&lt;/P&gt;
&lt;P&gt;If they are an actual SAS datetime, meaning numeric with a datetime format of some sort attached then it would be easy to either extract the date part of the value using the DATEPART function and assign the MMDDYY format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you need to provide data step code of what you actually have.&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/date-format/m-p/704785#M26180</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-09T16:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/date-format/m-p/704798#M26187</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;x = input(variable, anydtdtm.);&lt;BR /&gt;y = datepart(x);&lt;BR /&gt;format y mmddyy10.;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/date-format/m-p/704798#M26187</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-09T16:51:30Z</dc:date>
    </item>
  </channel>
</rss>

