<?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: MONTH-YY and MON-YY date format? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/MONTH-YY-and-MON-YY-date-format/m-p/446015#M283185</link>
    <description>&lt;P&gt;You can use MONYY format to get it without the Hyphen.&lt;/P&gt;
&lt;P&gt;Otherwise roll you own.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
picture monyyd (default=8)
 low - high = '%b-%Y' (datatype=date)
;
picture monthyyd (default=14)
 low - high = '%B-%Y' (datatype=date)
;
run;
data _null_;
 do month=1 to 12 ;
   date=mdy(month,1,2017);
   put date= date9. +1 date monyy. +1 date monyyd. +1 date monthyyd. +1 date monthyyd.-l;
 end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;date=01JAN2017  JAN17 JAN-2017   January-2017 January-2017
date=01FEB2017  FEB17 FEB-2017  February-2017 February-2017
date=01MAR2017  MAR17 MAR-2017     March-2017 March-2017
date=01APR2017  APR17 APR-2017     April-2017 April-2017
date=01MAY2017  MAY17 MAY-2017       May-2017 May-2017
date=01JUN2017  JUN17 JUN-2017      June-2017 June-2017
date=01JUL2017  JUL17 JUL-2017      July-2017 July-2017
date=01AUG2017  AUG17 AUG-2017    August-2017 August-2017
date=01SEP2017  SEP17 SEP-2017 September-2017 September-2017
date=01OCT2017  OCT17 OCT-2017   October-2017 October-2017
date=01NOV2017  NOV17 NOV-2017  November-2017 November-2017
date=01DEC2017  DEC17 DEC-2017  December-2017 December-2017&lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Mar 2018 22:14:45 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-03-15T22:14:45Z</dc:date>
    <item>
      <title>MONTH-YY and MON-YY date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MONTH-YY-and-MON-YY-date-format/m-p/446005#M283184</link>
      <description>&lt;P&gt;This seems like a really basic question that I should find in documentation or on a previous post, but&amp;nbsp;somehow I haven't been able to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have a sas date like 01NOV2017, how do I format it so that it shows up as November-17&amp;nbsp;or Nov-17 (with dash delimiter)?&lt;/P&gt;&lt;P&gt;Doesn't seem like either of these options are offered by SAS, though there are others like DDMMYYx with delimiters...is it possible to create a custom format to address the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would appreciate any tips....thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 21:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MONTH-YY-and-MON-YY-date-format/m-p/446005#M283184</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-03-15T21:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: MONTH-YY and MON-YY date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MONTH-YY-and-MON-YY-date-format/m-p/446015#M283185</link>
      <description>&lt;P&gt;You can use MONYY format to get it without the Hyphen.&lt;/P&gt;
&lt;P&gt;Otherwise roll you own.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
picture monyyd (default=8)
 low - high = '%b-%Y' (datatype=date)
;
picture monthyyd (default=14)
 low - high = '%B-%Y' (datatype=date)
;
run;
data _null_;
 do month=1 to 12 ;
   date=mdy(month,1,2017);
   put date= date9. +1 date monyy. +1 date monyyd. +1 date monthyyd. +1 date monthyyd.-l;
 end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;date=01JAN2017  JAN17 JAN-2017   January-2017 January-2017
date=01FEB2017  FEB17 FEB-2017  February-2017 February-2017
date=01MAR2017  MAR17 MAR-2017     March-2017 March-2017
date=01APR2017  APR17 APR-2017     April-2017 April-2017
date=01MAY2017  MAY17 MAY-2017       May-2017 May-2017
date=01JUN2017  JUN17 JUN-2017      June-2017 June-2017
date=01JUL2017  JUL17 JUL-2017      July-2017 July-2017
date=01AUG2017  AUG17 AUG-2017    August-2017 August-2017
date=01SEP2017  SEP17 SEP-2017 September-2017 September-2017
date=01OCT2017  OCT17 OCT-2017   October-2017 October-2017
date=01NOV2017  NOV17 NOV-2017  November-2017 November-2017
date=01DEC2017  DEC17 DEC-2017  December-2017 December-2017&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Mar 2018 22:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MONTH-YY-and-MON-YY-date-format/m-p/446015#M283185</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-15T22:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: MONTH-YY and MON-YY date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MONTH-YY-and-MON-YY-date-format/m-p/446765#M283186</link>
      <description>&lt;P&gt;Perfect, thank you so much!! Would have taken a long time for me to find that out on my own.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 13:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MONTH-YY-and-MON-YY-date-format/m-p/446765#M283186</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-03-19T13:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: MONTH-YY and MON-YY date format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MONTH-YY-and-MON-YY-date-format/m-p/446788#M283187</link>
      <description>&lt;P&gt;After playing with this I actually have a follow-up question:&amp;nbsp;&lt;BR /&gt;Looks like&amp;nbsp;picture formats may not work in sgplot:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/Picture-Formats-Not-Rendered-in-PROC-SGPLOT/td-p/230873" target="_blank"&gt;https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/Picture-Formats-Not-Rendered-in-PROC-SGPLOT/td-p/230873&lt;/A&gt;. Do you happen to know of any other method? Should have mentioned that&amp;nbsp;one of my outputs is a graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still really helpful for other outputs I'm doing, though. Thanks a bunch!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 14:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MONTH-YY-and-MON-YY-date-format/m-p/446788#M283187</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-03-19T14:20:48Z</dc:date>
    </item>
  </channel>
</rss>

