<?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 reading the day number from a SAS date in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/reading-the-day-number-from-a-SAS-date/m-p/756799#M30114</link>
    <description>&lt;P&gt;I have a column of data in the SAS format of DATE9.&amp;nbsp; &amp;nbsp;I want to just read the day number from the date from this column of data.&amp;nbsp; For example, one of the dates is 09Sep21 and I want to read the day of 9 from this data.&amp;nbsp; So any advice on how to read the day number from a SAS date would be greatly appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jul 2021 20:41:08 GMT</pubDate>
    <dc:creator>elopomorph88</dc:creator>
    <dc:date>2021-07-26T20:41:08Z</dc:date>
    <item>
      <title>reading the day number from a SAS date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/reading-the-day-number-from-a-SAS-date/m-p/756799#M30114</link>
      <description>&lt;P&gt;I have a column of data in the SAS format of DATE9.&amp;nbsp; &amp;nbsp;I want to just read the day number from the date from this column of data.&amp;nbsp; For example, one of the dates is 09Sep21 and I want to read the day of 9 from this data.&amp;nbsp; So any advice on how to read the day number from a SAS date would be greatly appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 20:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/reading-the-day-number-from-a-SAS-date/m-p/756799#M30114</guid>
      <dc:creator>elopomorph88</dc:creator>
      <dc:date>2021-07-26T20:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: reading the day number from a SAS date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/reading-the-day-number-from-a-SAS-date/m-p/756801#M30115</link>
      <description>&lt;P&gt;Use DAY function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;day(date);&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 20:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/reading-the-day-number-from-a-SAS-date/m-p/756801#M30115</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-07-26T20:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: reading the day number from a SAS date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/reading-the-day-number-from-a-SAS-date/m-p/756806#M30117</link>
      <description>&lt;P&gt;and for anyone else reading along, if you want the month you can use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;month(date)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and if you want the year, you can use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;year(date)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The format of the variable is irrelevant when you use the DAY() or the MONTH() or the YEAR() function; however the variable must be numeric, and the variable must be a valid SAS date (number of days since 01JAN1960) and not something like 090921 which is not a valid SAS date.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 21:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/reading-the-day-number-from-a-SAS-date/m-p/756806#M30117</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-26T21:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: reading the day number from a SAS date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/reading-the-day-number-from-a-SAS-date/m-p/756807#M30118</link>
      <description>Day function if you need to convert it, Day format if you want to summarize by day across various months and want to avoid having to create a new variable. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jul 2021 20:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/reading-the-day-number-from-a-SAS-date/m-p/756807#M30118</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-26T20:59:54Z</dc:date>
    </item>
  </channel>
</rss>

