<?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 Date as a quarter with year in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-as-a-quarter-with-year/m-p/538455#M148246</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;trying to get a date into a quarter format exactly like this..."Q1'19".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty close with Quarter = &lt;FONT face="Courier New" size="3"&gt;Cat(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Q"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,qtr(month),&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"'"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,year(month)) where month is my date variable.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;But this gives Q1'2019 which is close but not quite there.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;any help would be great. There is lots on the site already about this stuff but none did exactly this.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 21:37:45 GMT</pubDate>
    <dc:creator>CharlesFowler72</dc:creator>
    <dc:date>2019-02-25T21:37:45Z</dc:date>
    <item>
      <title>Date as a quarter with year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-as-a-quarter-with-year/m-p/538455#M148246</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;trying to get a date into a quarter format exactly like this..."Q1'19".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty close with Quarter = &lt;FONT face="Courier New" size="3"&gt;Cat(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Q"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,qtr(month),&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"'"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,year(month)) where month is my date variable.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;But this gives Q1'2019 which is close but not quite there.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;any help would be great. There is lots on the site already about this stuff but none did exactly this.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 21:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-as-a-quarter-with-year/m-p/538455#M148246</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2019-02-25T21:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date as a quarter with year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-as-a-quarter-with-year/m-p/538457#M148248</link>
      <description>&lt;P&gt;Well, you could change this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;year(month)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just use this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;year(month) - 2000&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 21:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-as-a-quarter-with-year/m-p/538457#M148248</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-25T21:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date as a quarter with year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-as-a-quarter-with-year/m-p/538460#M148250</link>
      <description>SUBSTRN() will allow you to substring a character variable. &lt;BR /&gt;&lt;BR /&gt;SUBSTRN(year(month), 3, 2) will give you the last two digits. You may also want to explore a custom format. That's an easier solution overall.</description>
      <pubDate>Mon, 25 Feb 2019 21:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-as-a-quarter-with-year/m-p/538460#M148250</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-25T21:53:01Z</dc:date>
    </item>
  </channel>
</rss>

