<?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 How to obtain Year from MMDDYY10. format? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878582#M347122</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have a date variable name, screendate, and it's format is&amp;nbsp;MMDDYY10.&amp;nbsp; How to obtain the year from it?&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 22:36:05 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2023-05-31T22:36:05Z</dc:date>
    <item>
      <title>How to obtain Year from MMDDYY10. format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878582#M347122</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have a date variable name, screendate, and it's format is&amp;nbsp;MMDDYY10.&amp;nbsp; How to obtain the year from it?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 22:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878582#M347122</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2023-05-31T22:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain Year from MMDDYY10. format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878583#M347123</link>
      <description>&lt;P&gt;To read the year of a SAS date into a new variable try the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p13eycdrmfb0l8n1492z3wocpt3s.htm" target="_blank" rel="noopener"&gt;YEAR function&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 22:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878583#M347123</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-05-31T22:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain Year from MMDDYY10. format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878584#M347124</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have a date variable name, screendate, and it's format is&amp;nbsp;MMDDYY10.&amp;nbsp; How to obtain the year from it?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;OR just use a YEAR4. format for display.&lt;/P&gt;
&lt;P&gt;Dummy code obviously as you haven't provided even a data set name:&lt;/P&gt;
&lt;PRE&gt;Proc print data=have;
   var screendate;
   format screendate year4. ;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 May 2023 22:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878584#M347124</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-31T22:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain Year from MMDDYY10. format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878587#M347127</link>
      <description>&lt;P&gt;Not just display, need to use calculation.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 23:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878587#M347127</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2023-05-31T23:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain Year from MMDDYY10. format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878592#M347129</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Not just display, need to use calculation.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Might be interesting to show the calculation involving a year value. Many such might be better done with the Intck or Intnx functions if the calculation involves intervals around dates in any way.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 00:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-obtain-Year-from-MMDDYY10-format/m-p/878592#M347129</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-01T00:01:37Z</dc:date>
    </item>
  </channel>
</rss>

