<?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 year shows as 2081 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-year-shows-as-2081/m-p/788202#M40066</link>
    <description>&lt;BR /&gt;I need help figuring out why my output year date value shows as the year 2081. I need the year to be 2021 or 2022. Please help. Thanks.</description>
    <pubDate>Mon, 03 Jan 2022 23:28:21 GMT</pubDate>
    <dc:creator>Tboat</dc:creator>
    <dc:date>2022-01-03T23:28:21Z</dc:date>
    <item>
      <title>Date year shows as 2081</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-year-shows-as-2081/m-p/788202#M40066</link>
      <description>&lt;BR /&gt;I need help figuring out why my output year date value shows as the year 2081. I need the year to be 2021 or 2022. Please help. Thanks.</description>
      <pubDate>Mon, 03 Jan 2022 23:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-year-shows-as-2081/m-p/788202#M40066</guid>
      <dc:creator>Tboat</dc:creator>
      <dc:date>2022-01-03T23:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date year shows as 2081</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-year-shows-as-2081/m-p/788204#M40067</link>
      <description>&lt;P&gt;Show the actual numeric value of the variable with a BEST16. format applied.&lt;/P&gt;
&lt;P&gt;Show/describe how you show the year value you say is incorrect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically this sort of thing comes from either an incorrectly built date value, something not actually a date but you think it is, or values out side of your expected range.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 23:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-year-shows-as-2081/m-p/788204#M40067</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-03T23:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date year shows as 2081</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-year-shows-as-2081/m-p/788205#M40068</link>
      <description>What code generated the date/year?&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jan 2022 23:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-year-shows-as-2081/m-p/788205#M40068</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-03T23:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date year shows as 2081</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-year-shows-as-2081/m-p/788219#M40069</link>
      <description>&lt;P&gt;Have you accidentally applied a SAS date format to the number that Excel uses to store dates?&amp;nbsp; Excel and SAS use different starting days for counting the number of days.&lt;/P&gt;
&lt;P&gt;You can correct an Excel date into a SAS date by adding the date 30DEC1899 (which will be a negative number since SAS counts dates from 1960).&lt;/P&gt;
&lt;PRE&gt;284   data _null_;
285     date=mdy(12,31,2020);
286     put date= date9. date=comma12. ;
287     date=mdy(1,1,2081);
288     put date= date9. date=comma12. ;
289     date=date+'30dec1899'd;
290     put date= date9. date=comma12. ;
291   run;

date=31DEC2020 date=22,280
date=01JAN2081 date=44,196
date=31DEC2020 date=22,280
&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jan 2022 03:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-year-shows-as-2081/m-p/788219#M40069</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-04T03:36:51Z</dc:date>
    </item>
  </channel>
</rss>

