<?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 formatting in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-formatting/m-p/403674#M98098</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   chardate = '01/31/2017';
   date = input(chardate, mmddyy10.);
   format date date9.;
   put date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Oct 2017 19:59:09 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-10-12T19:59:09Z</dc:date>
    <item>
      <title>Date formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formatting/m-p/403617#M98082</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have&amp;nbsp;field as a char 10 (teststop3) 01/31/2017&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to make this field a numeric 8.&amp;nbsp; I have tried many ways and can not get this straight one way was&lt;/P&gt;
&lt;P&gt;srvstop=input(teststop3,8.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 16:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formatting/m-p/403617#M98082</guid>
      <dc:creator>myboys2</dc:creator>
      <dc:date>2017-10-12T16:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formatting/m-p/403631#M98084</link>
      <description>&lt;P&gt;Likely you are looking for something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;srvstop = input(teststop3, mmddyy10.);&lt;/P&gt;
&lt;P&gt;and if you want to see the value as a date apply an appropriate format:&lt;/P&gt;
&lt;P&gt;format srvstop mmddyy10. ;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;format srvstop date9. ;&lt;/P&gt;
&lt;P&gt;as a couple of examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;srvstop will have a value similar to 20850. The formats show the value as a human readable date.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 17:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formatting/m-p/403631#M98084</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-12T17:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formatting/m-p/403674#M98098</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   chardate = '01/31/2017';
   date = input(chardate, mmddyy10.);
   format date date9.;
   put date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Oct 2017 19:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formatting/m-p/403674#M98098</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-10-12T19:59:09Z</dc:date>
    </item>
  </channel>
</rss>

