<?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: Date (numeric) variable incorrectly interpreted - How can I change format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Date-numeric-variable-incorrectly-interpreted-How-can-I-change/m-p/25662#M5817</link>
    <description>Thankyou so much - that has worked brilliant.&lt;BR /&gt;
Cheers</description>
    <pubDate>Thu, 30 Apr 2009 15:22:42 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-04-30T15:22:42Z</dc:date>
    <item>
      <title>Date (numeric) variable incorrectly interpreted - How can I change format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-numeric-variable-incorrectly-interpreted-How-can-I-change/m-p/25660#M5815</link>
      <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
Please can someone help me solve this riddle. &lt;BR /&gt;
&lt;BR /&gt;
I have a (system generated) NUMERIC variable in SAS which looks like this:  04AUG2006:00:00:00&lt;BR /&gt;
It has both 'format &amp;amp; Informant' of Datetime20.  However I need to create a new variable based on the ddmmyy.  I've tried everything from substr to input, but it seems to give me an error and recognises the year as 1963.  Any tips will be deeply appreciated:-)&lt;BR /&gt;
&lt;BR /&gt;
Cheers!</description>
      <pubDate>Thu, 30 Apr 2009 14:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-numeric-variable-incorrectly-interpreted-How-can-I-change/m-p/25660#M5815</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-30T14:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date (numeric) variable incorrectly interpreted - How can I change format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-numeric-variable-incorrectly-interpreted-How-can-I-change/m-p/25661#M5816</link>
      <description>I think you could simply use datepart function &lt;BR /&gt;
&lt;BR /&gt;
new = datepart(old);&lt;BR /&gt;
format new date9.;</description>
      <pubDate>Thu, 30 Apr 2009 14:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-numeric-variable-incorrectly-interpreted-How-can-I-change/m-p/25661#M5816</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-04-30T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date (numeric) variable incorrectly interpreted - How can I change format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-numeric-variable-incorrectly-interpreted-How-can-I-change/m-p/25662#M5817</link>
      <description>Thankyou so much - that has worked brilliant.&lt;BR /&gt;
Cheers</description>
      <pubDate>Thu, 30 Apr 2009 15:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-numeric-variable-incorrectly-interpreted-How-can-I-change/m-p/25662#M5817</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-30T15:22:42Z</dc:date>
    </item>
  </channel>
</rss>

