<?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 format with full month and year in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643751#M192172</link>
    <description>&lt;P&gt;I tried worddate. format but it gives me day as well which I don't need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test1;&lt;BR /&gt;a=put(today(),worddate.);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output: &amp;nbsp;&amp;nbsp;&amp;nbsp; April 28, 2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need : April 2020&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 02:33:13 GMT</pubDate>
    <dc:creator>nickspencer</dc:creator>
    <dc:date>2020-04-29T02:33:13Z</dc:date>
    <item>
      <title>Date format with full month and year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643750#M192171</link>
      <description>&lt;P&gt;Is there any SAS date format that displays the current month and year in full?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the current value should be April 2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 02:24:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643750#M192171</guid>
      <dc:creator>nickspencer</dc:creator>
      <dc:date>2020-04-29T02:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date format with full month and year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643751#M192172</link>
      <description>&lt;P&gt;I tried worddate. format but it gives me day as well which I don't need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test1;&lt;BR /&gt;a=put(today(),worddate.);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output: &amp;nbsp;&amp;nbsp;&amp;nbsp; April 28, 2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need : April 2020&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 02:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643751#M192172</guid>
      <dc:creator>nickspencer</dc:creator>
      <dc:date>2020-04-29T02:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date format with full month and year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643753#M192173</link>
      <description>&lt;P&gt;I don't know of a format that gives you exactly what you want.&amp;nbsp; But if you start with WORDDATX instead of WORDDATE, it will be easier to extract the pieces you want.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 03:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643753#M192173</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-04-29T03:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date format with full month and year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643760#M192175</link>
      <description>&lt;P&gt;Proc Format will allow you to make a large number of custom formats using the Picture with directives and indicating that the data is expected to be a date, time or datetime value.&lt;/P&gt;
&lt;PRE&gt;proc format ;
picture mymonthyear (default=15)
low-high = '%B %Y' (datatype=date)
;
run;

data example;
   do month=1 to 12;
      date = mdy(month,1,2020);
      put 'Date is ' date mymonthyear.;
   end;
run;&lt;/PRE&gt;
&lt;P&gt;The default= is to determine the default number of characters to display. If not included the formats tend to be 8 characters and a tad short. Depending on exact desired use you may need to use the -L (left justify) with Put.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 04:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643760#M192175</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-29T04:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date format with full month and year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643768#M192180</link>
      <description>&lt;P&gt;Look at the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=nlsref&amp;amp;docsetTarget=n005ct3ejupd4vn1vopvh32na267.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;NLDATMYMw.&lt;/A&gt;&amp;nbsp;format.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 05:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-with-full-month-and-year/m-p/643768#M192180</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-29T05:56:36Z</dc:date>
    </item>
  </channel>
</rss>

