<?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: Dates to day of the week in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719956#M222971</link>
    <description>Will this show the date also or just the day of the week?</description>
    <pubDate>Wed, 17 Feb 2021 16:25:22 GMT</pubDate>
    <dc:creator>Ddb300</dc:creator>
    <dc:date>2021-02-17T16:25:22Z</dc:date>
    <item>
      <title>Dates to day of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719952#M222967</link>
      <description>Is there a code for taking a column from a large data set which shows the date in standard format to show the date and the day of the week it is ?&lt;BR /&gt;&lt;BR /&gt;simplistic preferred</description>
      <pubDate>Wed, 17 Feb 2021 16:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719952#M222967</guid>
      <dc:creator>Ddb300</dc:creator>
      <dc:date>2021-02-17T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dates to day of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719954#M222969</link>
      <description>&lt;P&gt;You can apply the &lt;A href="https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p1rib2891qxd4yn18x1myfkmxeet.htm&amp;amp;locale=en" target="_self"&gt;WEEKDATE&lt;/A&gt; format to the variable that contains the date (assuming it is truly a SAS date value, which is the number of days since 01JAN1960).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719954#M222969</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-17T16:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dates to day of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719955#M222970</link>
      <description>&lt;P&gt;Or here is another way, using the &lt;A href="https://v8doc.sas.com/sashtml/lgref/z0200842.htm" target="_self"&gt;DOWNAME&lt;/A&gt; format, to get the day of the week (Sunday, Monday, etc.):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
    format date date9.;
    format day_of_the_week downame.;
    date = "17Feb2021"d;
    day_of_the_week = date;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719955#M222970</guid>
      <dc:creator>mklangley</dc:creator>
      <dc:date>2021-02-17T16:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dates to day of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719956#M222971</link>
      <description>Will this show the date also or just the day of the week?</description>
      <pubDate>Wed, 17 Feb 2021 16:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719956#M222971</guid>
      <dc:creator>Ddb300</dc:creator>
      <dc:date>2021-02-17T16:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dates to day of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719957#M222972</link>
      <description>&lt;P&gt;What do you mean exactly? Do you want to see Wednesday February 17, 2021? Wednesday? Day 4 (sunday = day 1)?&lt;BR /&gt;&lt;BR /&gt;Either way, you're likely looking for a format, depending on exactly what you want. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data demo;
date = "17Feb2021"d;
date1 = date;
date2 = date;
format date weekdate. date1 weekday. date2 date9.;
run;

proc print data=demo;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=n0p2fmevfgj470n17h4k9f27qjag.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=n0p2fmevfgj470n17h4k9f27qjag.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/369834"&gt;@Ddb300&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Is there a code for taking a column from a large data set which shows the date in standard format to show the date and the day of the week it is ?&lt;BR /&gt;&lt;BR /&gt;simplistic preferred&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719957#M222972</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-02-17T16:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dates to day of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719958#M222973</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/369834"&gt;@Ddb300&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Will this show the date also or just the day of the week?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS Provides a bunch of formats. You can also create your own with Proc Format.&lt;/P&gt;
&lt;P&gt;How about showing an example of what you want the result to look like so we do not have to guess what you want?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719958#M222973</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-17T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dates to day of the week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719959#M222974</link>
      <description>&lt;P&gt;If you're looking for the day of the week and the date combined in a single variable, see&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;'s answer above.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dates-to-day-of-the-week/m-p/719959#M222974</guid>
      <dc:creator>mklangley</dc:creator>
      <dc:date>2021-02-17T16:27:22Z</dc:date>
    </item>
  </channel>
</rss>

