<?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 Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149428#M39433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.. I moved your quesiton to the Procedures community so more people will see your question. I also did a search on ccyymmdd and found a few threads with answers. Does this one help? &lt;A _jive_internal="true" href="https://communities.sas.com/message/132225#132225"&gt;https://communities.sas.com/message/132225#132225&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 20:09:27 GMT</pubDate>
    <dc:creator>Community_Help</dc:creator>
    <dc:date>2014-09-17T20:09:27Z</dc:date>
    <item>
      <title>date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149427#M39432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone familiar with &lt;STRONG&gt;ccyymmdd&lt;/STRONG&gt; format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am supposed to convert today's date using the above format but not working&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 20:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149427#M39432</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2014-09-17T20:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149428#M39433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.. I moved your quesiton to the Procedures community so more people will see your question. I also did a search on ccyymmdd and found a few threads with answers. Does this one help? &lt;A _jive_internal="true" href="https://communities.sas.com/message/132225#132225"&gt;https://communities.sas.com/message/132225#132225&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 20:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149428#M39433</guid>
      <dc:creator>Community_Help</dc:creator>
      <dc:date>2014-09-17T20:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149429#M39434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks admin&lt;/P&gt;&lt;P&gt;will take a&amp;nbsp; look shrtly &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 20:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149429#M39434</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2014-09-17T20:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149430#M39435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS if you have a date variable then the equivalent format is yymmddN8.&lt;/P&gt;&lt;P&gt;The CC or century will show up with most SAS formats when the field is wide enough to provide&amp;nbsp; a 4 digit year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a data step:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=today();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format x yymmddN8. ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 22:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149430#M39435</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-17T22:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149431#M39436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so ccyy is actually the current&amp;nbsp; year,right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 23:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149431#M39436</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2014-09-17T23:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149432#M39437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CCYY is notation for a four digit year CC is the century (currently 21) and YY are the last two digits of the year.&lt;/P&gt;&lt;P&gt;If you want today's date then use the DATE() function.&amp;nbsp; (You can also call the same function using the name TODAY() instead).&lt;/P&gt;&lt;P&gt;This will return the current date as the number days since beginning of 1960.&amp;nbsp; You can then use the PUT() function to apply a FORMAT to the value to convert that into the 8 digit string that you want.&amp;nbsp; If you want that string of digits converted to a number you can use an INPUT() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; today=date();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; today_str = put(today,yymmddn8.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; today_num = input(today_str,8.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; put today=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / today=&amp;nbsp; date9.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / today_str=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / today_str= $quote.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / today_num=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / today_num = comma10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;today=19983&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;today=17SEP2014&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;today_str=20140917&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;today_str="20140917"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;today_num=20140917&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;today_num=20,140,917&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 00:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149432#M39437</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-09-18T00:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149433#M39438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im actually supposed to show today's date using this format ccyymmdd so if y=today() after trying format y ccyymmdd. I was not getting anything. So I should do&amp;nbsp; format y yymmdd8. then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 00:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149433#M39438</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2014-09-18T00:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149434#M39439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. 'CCYYMMDD' is NOT a SAS FORMAT.&amp;nbsp; It is someone's idea of a mnemonic way of describing the way that they want the date to display. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 01:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149434#M39439</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-09-18T01:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: date format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149435#M39440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 01:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/date-format/m-p/149435#M39440</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2014-09-18T01:24:21Z</dc:date>
    </item>
  </channel>
</rss>

