<?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: Displaying date in YYYYMMDD format in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/325941#M13</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I can't test it right now, but you should be able to control the separator as well:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format datevar yymmdds10.;&lt;/P&gt;
&lt;P&gt;format datevar yymmddd10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;s = slash&lt;/P&gt;
&lt;P&gt;d = dash&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The default separator for the YYMMDD format is the dash or hyphen.&lt;/P&gt;
&lt;P&gt;Possible separators for the extended version of the format (as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt; posted) are&lt;/P&gt;
&lt;P&gt;n no separator&lt;/P&gt;
&lt;P&gt;b blank&lt;/P&gt;
&lt;P&gt;d dash&lt;/P&gt;
&lt;P&gt;s slash&lt;/P&gt;
&lt;P&gt;p period&lt;/P&gt;
&lt;P&gt;c colon&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2017 12:05:02 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-01-19T12:05:02Z</dc:date>
    <item>
      <title>How do I display data in YYYYMMDD format?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/325876#M10</link>
      <description>&lt;P&gt;How do I display date in the YYYYMMDD format? Like 1960/02/21.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 14:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/325876#M10</guid>
      <dc:creator>opoudyal0</dc:creator>
      <dc:date>2018-05-07T14:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying date in YYYYMMDD format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/325887#M11</link>
      <description>&lt;P&gt;The yymmdd format is what you are looking for.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
datevar = date();
format datevar yymmdd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2017 06:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/325887#M11</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-19T06:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying date in YYYYMMDD format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/325931#M12</link>
      <description>&lt;P&gt;I can't test it right now, but you should be able to control the separator as well:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format datevar yymmdds10.;&lt;/P&gt;
&lt;P&gt;format datevar yymmddd10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;s = slash&lt;/P&gt;
&lt;P&gt;d = dash&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 11:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/325931#M12</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-01-19T11:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying date in YYYYMMDD format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/325941#M13</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I can't test it right now, but you should be able to control the separator as well:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format datevar yymmdds10.;&lt;/P&gt;
&lt;P&gt;format datevar yymmddd10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;s = slash&lt;/P&gt;
&lt;P&gt;d = dash&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The default separator for the YYMMDD format is the dash or hyphen.&lt;/P&gt;
&lt;P&gt;Possible separators for the extended version of the format (as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt; posted) are&lt;/P&gt;
&lt;P&gt;n no separator&lt;/P&gt;
&lt;P&gt;b blank&lt;/P&gt;
&lt;P&gt;d dash&lt;/P&gt;
&lt;P&gt;s slash&lt;/P&gt;
&lt;P&gt;p period&lt;/P&gt;
&lt;P&gt;c colon&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 12:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/325941#M13</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-19T12:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying date in YYYYMMDD format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/326121#M14</link>
      <description>&lt;P&gt;What about if my date is a character variable and not numeric? For example: I have 11/5/1969 read in as character and I need to change it to the YYYYMMDD format.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 20:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/326121#M14</guid>
      <dc:creator>opoudyal0</dc:creator>
      <dc:date>2017-01-19T20:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying date in YYYYMMDD format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/326125#M15</link>
      <description>&lt;P&gt;Depending on the format, do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;datvar = input(stringvar,ddmmyy10.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;datvar = input(stringvar,mmddyy10.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2017 21:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/326125#M15</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-19T21:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying date in YYYYMMDD format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/326129#M16</link>
      <description>&lt;P&gt;If you want to continue to use the same variable name, you need to output the result as character.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;datevar = put ( input(datevar, mmddyy10.), yymmdds10. );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 21:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-display-data-in-YYYYMMDD-format/m-p/326129#M16</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-01-19T21:09:34Z</dc:date>
    </item>
  </channel>
</rss>

