<?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: SAS Date Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673458#M202602</link>
    <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #009999;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_blank" rel="noopener"&gt;KurtBremser&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interesting. I run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   d='30jul2020'd;
   put d= yymmdd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(without extra d) and it gives me the date with hyphens:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;d=2020-07-30
&lt;/PRE&gt;
&lt;P&gt;Apparently in the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p0iptsg6780kzfn1k5f0b8s7k7dq.htm&amp;amp;locale=en" target="_self"&gt;YYMMDDxw. Format&lt;/A&gt; default (when x is not present) is hyphen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 14:35:10 GMT</pubDate>
    <dc:creator>LeonidBatkhan</dc:creator>
    <dc:date>2020-07-30T14:35:10Z</dc:date>
    <item>
      <title>SAS Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673360#M202559</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the following sas date format: YYYY-MM-DD&lt;/P&gt;&lt;P&gt;Can someone help to achieve this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 07:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673360#M202559</guid>
      <dc:creator>psrajput</dc:creator>
      <dc:date>2020-07-30T07:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673361#M202560</link>
      <description>&lt;P&gt;Two display formats exist that display SAS date values (counts of days, where 1960-01-01 is day zero) in this manner: YYMMDDD10. or E8601DA10.&lt;/P&gt;
&lt;P&gt;If you have to start with something that looks like a date, but is not yet a SAS date value, please tell us the type (numeric or character) and the current format attached to the variable.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 07:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673361#M202560</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-30T07:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673365#M202561</link>
      <description>Thanks, I could not find it anywhere on the internet. And that's how bigquery takes a date variable.</description>
      <pubDate>Thu, 30 Jul 2020 08:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673365#M202561</guid>
      <dc:creator>psrajput</dc:creator>
      <dc:date>2020-07-30T08:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673370#M202564</link>
      <description>&lt;P&gt;First, bookmark this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=pgmsashome&amp;amp;docsetTarget=home.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;SAS® 9.4 and SAS® Viya® 3.4 Programming Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From there, open Data Step Programming to find the chapters dealing with Formats/Informats, Functions/Call Routines, and other DATA step related information. The Dictionary of Formats offers to find Formats by Category, so you get a place where to start looking for date formats.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 08:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673370#M202564</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-30T08:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673431#M202586</link>
      <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #009999;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_blank"&gt;KurtBremser&lt;/A&gt;, I think you mistyped the format YYMMDD10. as YYMMDDD10. (extra D). Isn't it?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673431#M202586</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-07-30T13:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673437#M202588</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51532"&gt;@LeonidBatkhan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #009999;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_blank" rel="noopener"&gt;KurtBremser&lt;/A&gt;, I think you mistyped the format YYMMDD10. as YYMMDDD10. (extra D). Isn't it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No. The extra "D" instructs SAS to use the dash as delimiter (default is a forward slash). See &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p0iptsg6780kzfn1k5f0b8s7k7dq.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 14:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673437#M202588</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-30T14:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673458#M202602</link>
      <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #009999;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_blank" rel="noopener"&gt;KurtBremser&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interesting. I run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   d='30jul2020'd;
   put d= yymmdd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(without extra d) and it gives me the date with hyphens:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;d=2020-07-30
&lt;/PRE&gt;
&lt;P&gt;Apparently in the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p0iptsg6780kzfn1k5f0b8s7k7dq.htm&amp;amp;locale=en" target="_self"&gt;YYMMDDxw. Format&lt;/A&gt; default (when x is not present) is hyphen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 14:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673458#M202602</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-07-30T14:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673494#M202616</link>
      <description>&lt;P&gt;You're right. I don't know how I came to use the YYMMDDD format; maybe I confused it with MMDDYY, where the slash&amp;nbsp;&lt;EM&gt;is&lt;/EM&gt; default.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 16:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-Format/m-p/673494#M202616</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-30T16:40:22Z</dc:date>
    </item>
  </channel>
</rss>

