<?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: How to convert date from Q1 2018 to 01Mar2018 in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-date-from-Q1-2018-to-01Mar2018/m-p/499216#M6290</link>
    <description>&lt;P&gt;What is the variable type and format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158353"&gt;@gracetones&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a date in char which looks like this Q1 2018. Not sure how to convert it to any date formats.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 18:43:18 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-09-26T18:43:18Z</dc:date>
    <item>
      <title>How to convert date from Q1 2018 to 01Mar2018</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-date-from-Q1-2018-to-01Mar2018/m-p/499198#M6289</link>
      <description>&lt;P&gt;I have a date in char which looks like this Q1 2018. Not sure how to convert it to any date formats.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 17:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-convert-date-from-Q1-2018-to-01Mar2018/m-p/499198#M6289</guid>
      <dc:creator>gracetones</dc:creator>
      <dc:date>2018-09-26T17:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date from Q1 2018 to 01Mar2018</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-date-from-Q1-2018-to-01Mar2018/m-p/499216#M6290</link>
      <description>&lt;P&gt;What is the variable type and format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158353"&gt;@gracetones&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a date in char which looks like this Q1 2018. Not sure how to convert it to any date formats.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 18:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-convert-date-from-Q1-2018-to-01Mar2018/m-p/499216#M6290</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-26T18:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date from Q1 2018 to 01Mar2018</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-convert-date-from-Q1-2018-to-01Mar2018/m-p/499219#M6291</link>
      <description>And are you sure you want March 1 as the output? That's an unconventional Q1 start.  If it's character here's one way:&lt;BR /&gt;&lt;BR /&gt;data demo;&lt;BR /&gt;*create variable to test;&lt;BR /&gt;x='Q12018';&lt;BR /&gt;&lt;BR /&gt;*reorder to 2018Q1;&lt;BR /&gt;y=catt(substr(x, 3, 4), 'Q', substr(x, 2, 1));&lt;BR /&gt;&lt;BR /&gt;*import as a date;&lt;BR /&gt;sas_date = input(y, yyq6.);&lt;BR /&gt;&lt;BR /&gt;*increment to custom interval;&lt;BR /&gt;quarter_start = intnx('month', sas_date, 2, 'b');&lt;BR /&gt;&lt;BR /&gt;*apply format to view;&lt;BR /&gt;format sas_date quarter_start date9.;&lt;BR /&gt;run;</description>
      <pubDate>Wed, 26 Sep 2018 18:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-convert-date-from-Q1-2018-to-01Mar2018/m-p/499219#M6291</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-26T18:51:31Z</dc:date>
    </item>
  </channel>
</rss>

