<?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: Question about a date format in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3696#M1812</link>
    <description>Thank you, Claude, however, this issue was resolved this past July.  I appreciate your trying to help.</description>
    <pubDate>Wed, 15 Aug 2007 19:54:49 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-08-15T19:54:49Z</dc:date>
    <item>
      <title>Question about a date format</title>
      <link>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3691#M1807</link>
      <description>Can anyone let me know if there is a date format in SAS that would produce a date as follows:&lt;BR /&gt;
&lt;BR /&gt;
Wednesday, 30 August 2005&lt;BR /&gt;
&lt;BR /&gt;
or, should I create my own date format?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!</description>
      <pubDate>Mon, 02 Jul 2007 17:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3691#M1807</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-02T17:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Question about a date format</title>
      <link>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3692#M1808</link>
      <description>Try this (in an EG code node -- NOT as a stored process). Probably WEEKDATX is the format you want. The documentation on SAS formats is quite extensive and and overview and list of formats can be found under the topic: &lt;B&gt;&lt;BR /&gt;
Dates, Times, and Intervals --&amp;gt; About SAS Date, Time, and Datetime Values&lt;/B&gt;&lt;BR /&gt;
in the online documentation.&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
data testdates;&lt;BR /&gt;
  infile datalines;&lt;BR /&gt;
  input name $ bday1 : mmddyy10.;&lt;BR /&gt;
  bday2 = bday1;&lt;BR /&gt;
  bday3 = bday1;&lt;BR /&gt;
  bday4 = bday1;&lt;BR /&gt;
  bday5 = bday1;&lt;BR /&gt;
return;&lt;BR /&gt;
datalines;&lt;BR /&gt;
alan 11/15/1950&lt;BR /&gt;
bob 12/31/1960&lt;BR /&gt;
carl 11/29/1984&lt;BR /&gt;
dave 03/03/2003&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
proc print data=testdates label;&lt;BR /&gt;
var bday1-bday5;&lt;BR /&gt;
format bday1 WEEKDATX. bday2 WEEKDATX23. bday3 worddatx. bday4 date11.;&lt;BR /&gt;
label bday1 = 'WEEKDATX'&lt;BR /&gt;
      bday2 = 'WEEKDATX23'&lt;BR /&gt;
	  bday3 = 'WORDDATX'&lt;BR /&gt;
	  bday4 = 'DATE11'&lt;BR /&gt;
	  bday5 = 'unformatted value';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 02 Jul 2007 18:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3692#M1808</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-07-02T18:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Question about a date format</title>
      <link>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3693#M1809</link>
      <description>Thanks, Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
I'll look at the formats.... and do you think ALL of my code is in Stored Processes ? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Just kidding!  I really appreciate your guidance on so many items.&lt;BR /&gt;
&lt;BR /&gt;
Thank you again and again!</description>
      <pubDate>Mon, 02 Jul 2007 19:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3693#M1809</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-02T19:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Question about a date format</title>
      <link>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3694#M1810</link>
      <description>No, but, after the last time I forgot to mention that the code was NOT a stored process, I feel that I ought to qualify code examples with how I intend them to be run. &lt;BR /&gt;
 &lt;BR /&gt;
Glad to help.&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 02 Jul 2007 21:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3694#M1810</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-07-02T21:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question about a date format</title>
      <link>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3695#M1811</link>
      <description>try this:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
    x = put("30aug2005"d,weekdatx.);&lt;BR /&gt;
    putlog x;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 15 Aug 2007 19:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3695#M1811</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-15T19:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Question about a date format</title>
      <link>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3696#M1812</link>
      <description>Thank you, Claude, however, this issue was resolved this past July.  I appreciate your trying to help.</description>
      <pubDate>Wed, 15 Aug 2007 19:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Question-about-a-date-format/m-p/3696#M1812</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-15T19:54:49Z</dc:date>
    </item>
  </channel>
</rss>

