<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419198#M103043</link>
    <description>&lt;P&gt;Where do you get those numbers from?&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;14316=13MAR1999?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you get the data from Excel, if so Excel holds date values from a different base date so the number is different.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2017 15:09:10 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-12-07T15:09:10Z</dc:date>
    <item>
      <title>Date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419197#M103042</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Dear SAS users&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I have a variable "Birth_date" with dates of birth. The variable&amp;nbsp;containts numbers between 14316 and 36329. As far as I know the SAS date of birth format counts from the year 1960 so that jan 1st 1960 is "1" and so forth. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;If I do a proc freq with a date9. format I get dates between year 2011 and year 2052. That doesn't quite make sense since the data should be covering current employees from ages at maybe 16 and up. So I would expect dates&amp;nbsp;between maybe year 1940 and&amp;nbsp;year 2000 or something like that:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;freq&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; =NEW.Samlet;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Birth_date &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;date9.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Birth_date;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Am I doing something wrong or does my data simply contain nonsense?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Kind regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Jacob&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419197#M103042</guid>
      <dc:creator>Jbraun</dc:creator>
      <dc:date>2017-12-07T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419198#M103043</link>
      <description>&lt;P&gt;Where do you get those numbers from?&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;14316=13MAR1999?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you get the data from Excel, if so Excel holds date values from a different base date so the number is different.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419198#M103043</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-12-07T15:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419200#M103045</link>
      <description>&lt;P&gt;Dear RW9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data comes from an employee database and we use SAS primarily so therefore I was expecting the numbers to express a SAS-format. I thought that maybe the explanation was that more than one baseline-format existed in SAS, such as if a 1900-baseline was also sometimes used, then maybe that would explain the distribution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jacob&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419200#M103045</guid>
      <dc:creator>Jbraun</dc:creator>
      <dc:date>2017-12-07T15:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419205#M103048</link>
      <description>&lt;P&gt;Well there is:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000197881.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000197881.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However you need to know what those numbers actually refer to.&amp;nbsp; I would also be careful about changing the option as it may affect other data's representation in the same session.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419205#M103048</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-12-07T15:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419207#M103049</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419207#M103049</guid>
      <dc:creator>Jbraun</dc:creator>
      <dc:date>2017-12-07T15:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419214#M103055</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/163039"&gt;@Jbraun&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Dear SAS users&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I have a variable "Birth_date" with dates of birth. The variable&amp;nbsp;containts numbers between 14316 and 36329. As far as I know the SAS date of birth format counts from the year 1960 so that jan 1st 1960 is "1" and so forth. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You might be interested to know that those example numbers will be 3/12/1939 and 6/18/1999 if treated as EXCEL date values which uses 1/1/1900 as it's base date. Perhaps the data base imported data from Excel but did not use or associate a date format with them, or the date format did not carry over from export or however you moved the data into SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419214#M103055</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-07T15:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419295#M103082</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;thanks, that age span would definitely make a lot more sense. I will of course look for documentation to make sure.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 19:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format/m-p/419295#M103082</guid>
      <dc:creator>Jbraun</dc:creator>
      <dc:date>2017-12-07T19:00:37Z</dc:date>
    </item>
  </channel>
</rss>

