<?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 Conversion in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-Conversion/m-p/283134#M57667</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the date in 20070102 numeric format, i want this into SAS format so that i get the month out of this date. I am happy to&lt;/P&gt;&lt;P&gt;know if there is another way as well without first formatting into SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jul 2016 09:22:22 GMT</pubDate>
    <dc:creator>gnrslasher37</dc:creator>
    <dc:date>2016-07-09T09:22:22Z</dc:date>
    <item>
      <title>Date Conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Conversion/m-p/283134#M57667</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the date in 20070102 numeric format, i want this into SAS format so that i get the month out of this date. I am happy to&lt;/P&gt;&lt;P&gt;know if there is another way as well without first formatting into SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 09:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Conversion/m-p/283134#M57667</guid>
      <dc:creator>gnrslasher37</dc:creator>
      <dc:date>2016-07-09T09:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Conversion/m-p/283141#M57668</link>
      <description>&lt;P&gt;I guess you want first to change the numeric to SAS date and then get the MONTH from the SAS date. Here is one way.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
dt =  20070102;
date = input(put(dt,8.),yymmdd10.);
month = month(date);
put date = month =;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 11:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Conversion/m-p/283141#M57668</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2016-07-09T11:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Conversion/m-p/283142#M57669</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you have the number 20,070,102 and you want to treat the digits from the hundreds and thousands place as a month then just use some arithmetic to get the value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
  input number comma10.;
  month = mod(int(number/100),100);
  put (number month) (=);
cards;
20,070,102
20131201
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Jul 2016 11:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Conversion/m-p/283142#M57669</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-07-09T11:56:38Z</dc:date>
    </item>
  </channel>
</rss>

