<?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: YYYMMDD where the field reads as a date in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/YYYMMDD-where-the-field-reads-as-a-date/m-p/860307#M998</link>
    <description>&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;borrower_dob = '25AUG1947:00:00:00.000000'dt;&lt;/P&gt;
&lt;P&gt;BORROWER_DOB1 = datepart(BORROWER_DOB);&lt;BR /&gt;format BORROWER_DOB1 yymmdd10.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to tell SAS it is a datetime value (in-close in quotes &amp;amp; add dt) then use datepart function to pull out the date.&amp;nbsp; The correct format is yymmdd10.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 21:09:53 GMT</pubDate>
    <dc:creator>tom_grant</dc:creator>
    <dc:date>2023-02-22T21:09:53Z</dc:date>
    <item>
      <title>YYYMMDD where the field reads as a date</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/YYYMMDD-where-the-field-reads-as-a-date/m-p/860303#M997</link>
      <description>&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;borrower_dob = 25AUG1947:00:00:00.000000;&lt;/P&gt;
&lt;P&gt;BORROWER_DOB1 = BORROWER_DOB;&lt;BR /&gt;format BORROWER_DOB1 yyyymmdd10.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;I get the results truncated with a bunch of ........... in the field&lt;/P&gt;
&lt;P&gt;Desired result is 19470825&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 20:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/YYYMMDD-where-the-field-reads-as-a-date/m-p/860303#M997</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2023-02-22T20:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: YYYMMDD where the field reads as a date</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/YYYMMDD-where-the-field-reads-as-a-date/m-p/860307#M998</link>
      <description>&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;borrower_dob = '25AUG1947:00:00:00.000000'dt;&lt;/P&gt;
&lt;P&gt;BORROWER_DOB1 = datepart(BORROWER_DOB);&lt;BR /&gt;format BORROWER_DOB1 yymmdd10.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to tell SAS it is a datetime value (in-close in quotes &amp;amp; add dt) then use datepart function to pull out the date.&amp;nbsp; The correct format is yymmdd10.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 21:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/YYYMMDD-where-the-field-reads-as-a-date/m-p/860307#M998</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2023-02-22T21:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: YYYMMDD where the field reads as a date</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/YYYMMDD-where-the-field-reads-as-a-date/m-p/860309#M999</link>
      <description>Whoops - correct format is yymmddn.</description>
      <pubDate>Wed, 22 Feb 2023 21:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/YYYMMDD-where-the-field-reads-as-a-date/m-p/860309#M999</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2023-02-22T21:14:20Z</dc:date>
    </item>
  </channel>
</rss>

