<?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: format date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/format-date/m-p/302410#M64152</link>
    <description>&lt;P&gt;Of course that wouldn't work. You were telling SAS to read the value 1129 as the year.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
   set have ;
   newdate=input (olddate, mmddyy8. );  
   FORMAT newdate yymmdd8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You may get warnings about conversion of numeric to character if your olddate variable is numeric as INPUT expects character values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2016 17:34:45 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-10-04T17:34:45Z</dc:date>
    <item>
      <title>format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-date/m-p/302406#M64150</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have a character date variable&amp;nbsp; 11292000&amp;nbsp; wich I would like to convert into 20001129.&lt;/P&gt;&lt;P&gt;I used:&lt;/P&gt;&lt;P&gt;data&amp;nbsp;want ;&lt;/P&gt;&lt;P&gt;set have&amp;nbsp;;&lt;/P&gt;&lt;P&gt;newdate=input (olddate, &lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color="#008080"&gt;yymmdd8.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; );&amp;nbsp; but the code does not work.&lt;/P&gt;&lt;P&gt;any ideas? thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 17:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-date/m-p/302406#M64150</guid>
      <dc:creator>archibald</dc:creator>
      <dc:date>2016-10-04T17:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-date/m-p/302410#M64152</link>
      <description>&lt;P&gt;Of course that wouldn't work. You were telling SAS to read the value 1129 as the year.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
   set have ;
   newdate=input (olddate, mmddyy8. );  
   FORMAT newdate yymmdd8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You may get warnings about conversion of numeric to character if your olddate variable is numeric as INPUT expects character values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 17:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-date/m-p/302410#M64152</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-04T17:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-date/m-p/302411#M64153</link>
      <description>&lt;P&gt;oh I see.&lt;/P&gt;&lt;P&gt;Never mind I fixed it. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 17:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-date/m-p/302411#M64153</guid>
      <dc:creator>archibald</dc:creator>
      <dc:date>2016-10-04T17:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-date/m-p/302460#M64158</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/72261"&gt;@archibald﻿&lt;/a&gt;&amp;nbsp;Please mark the question as solved.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 20:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-date/m-p/302460#M64158</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-04T20:13:31Z</dc:date>
    </item>
  </channel>
</rss>

