<?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 in dd-mon-yyyy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/date-in-dd-mon-yyyy/m-p/122234#M25070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works. Thanks Haikuo. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2013 19:22:29 GMT</pubDate>
    <dc:creator>dan999</dc:creator>
    <dc:date>2013-02-27T19:22:29Z</dc:date>
    <item>
      <title>date in dd-mon-yyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-in-dd-mon-yyyy/m-p/122232#M25068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using SAS 9.1. I want the date in the format 15-OCT-2012. I found a piece of code here that gets the year in a 2 digit format rather than 4 and I don't know how to change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; picture date9x other='%0d-%b-%0y' (datatype=date);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symputx('enddt',put(intnx('month',today(),-2,'end'),date9x.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%put enddt = &amp;amp;enddt.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get 31-DEC-12. I changed the last part to %Y and now I get 31-DEC-20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get 2012?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 19:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-in-dd-mon-yyyy/m-p/122232#M25068</guid>
      <dc:creator>dan999</dc:creator>
      <dc:date>2013-02-26T19:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: date in dd-mon-yyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-in-dd-mon-yyyy/m-p/122233#M25069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; picture date9x other='%0d-%b-%Y' (datatype=date);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call symputx('enddt',put(intnx('month',today(),-2,'end'),date9x11.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put enddt = &amp;amp;enddt.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 19:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-in-dd-mon-yyyy/m-p/122233#M25069</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-02-26T19:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: date in dd-mon-yyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-in-dd-mon-yyyy/m-p/122234#M25070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works. Thanks Haikuo. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 19:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-in-dd-mon-yyyy/m-p/122234#M25070</guid>
      <dc:creator>dan999</dc:creator>
      <dc:date>2013-02-27T19:22:29Z</dc:date>
    </item>
  </channel>
</rss>

