<?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: SAS Date Format in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534808#M6381</link>
    <description>&lt;P&gt;If your datetime comes in this form consistently, the anydtdtm. informat will work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
indate = 'Feb  5 2019 12:00AM';
outdate = datepart(input(indate,anydtdtm20.));
format outdate mmddyy10.;
run;

proc print data=want noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;      indate              outdate

Feb  5 2019 12:00AM    02/05/2019
&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Feb 2019 12:54:32 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-02-12T12:54:32Z</dc:date>
    <item>
      <title>SAS Date Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534781#M6377</link>
      <description>&lt;P&gt;Hi Can someone help me with using the informat for this date ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp;&amp;nbsp;5 2019 12:00AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I need the output in mmddyy10. format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 12:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534781#M6377</guid>
      <dc:creator>adityaa9z</dc:creator>
      <dc:date>2019-02-12T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534805#M6379</link>
      <description>&lt;P&gt;So you want to read the string "&lt;SPAN&gt;Feb&amp;nbsp;&amp;nbsp;5 2019 12:00AM" as a &lt;STRONG&gt;date&lt;/STRONG&gt; or a &lt;STRONG&gt;datetime&lt;/STRONG&gt; value?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 12:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534805#M6379</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-02-12T12:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534806#M6380</link>
      <description>Want to read it as DateTime. Want to Write as mmddyy10.</description>
      <pubDate>Tue, 12 Feb 2019 12:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534806#M6380</guid>
      <dc:creator>adityaa9z</dc:creator>
      <dc:date>2019-02-12T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534808#M6381</link>
      <description>&lt;P&gt;If your datetime comes in this form consistently, the anydtdtm. informat will work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
indate = 'Feb  5 2019 12:00AM';
outdate = datepart(input(indate,anydtdtm20.));
format outdate mmddyy10.;
run;

proc print data=want noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;      indate              outdate

Feb  5 2019 12:00AM    02/05/2019
&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2019 12:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534808#M6381</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-12T12:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534868#M6384</link>
      <description>&lt;P&gt;If you want to keep the value as a datetime value you can use a custom format. Example:&lt;/P&gt;
&lt;PRE&gt;Proc format library=work;
picture dtmmddyy    (default=10)
low-high ='%0m/%0d/%Y'   (datatype=datetime)
;
run;

data example;
   x='02FEB2019:10:15:15'dt;
   put x dtmmddyy.;
run;&lt;/PRE&gt;
&lt;P&gt;SAS does supply a number of other formats to display the date portion of datetime values such as DTDATE, DTMONYY and a couple of others. So this is not an off the wall solution.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 15:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Date-Format/m-p/534868#M6384</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-12T15:11:50Z</dc:date>
    </item>
  </channel>
</rss>

