<?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: Finding Month and day from number of days away from January 1. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273031#M54362</link>
    <description>&lt;P&gt;Where is the data from? &amp;nbsp;I mean I can see year=1956 as first four characters, but the rest doesn't make sense and formating as date value is wrong.&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2016 14:22:41 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-05-25T14:22:41Z</dc:date>
    <item>
      <title>Finding Month and day from number of days away from January 1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273022#M54355</link>
      <description>&lt;P&gt;Hello, I have a number that represents the number of days from January 1 of any year with January 1 as day 1. For example 10 will be January 10.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using SAS how can I convert that number into day and month for example 10 = 01/10?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pramodini&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273022#M54355</guid>
      <dc:creator>pr1</dc:creator>
      <dc:date>2016-05-25T14:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Month and day from number of days away from January 1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273029#M54359</link>
      <description>&lt;P&gt;How do you intend to supply the year?&amp;nbsp; Getting the correct answer depends on whether or not it is a leap year.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:15:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273029#M54359</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-05-25T14:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Month and day from number of days away from January 1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273030#M54360</link>
      <description>&lt;P&gt;I have&amp;nbsp; 1956229 as input field that should translate into 8/16/1956&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273030#M54360</guid>
      <dc:creator>pr1</dc:creator>
      <dc:date>2016-05-25T14:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Month and day from number of days away from January 1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273031#M54362</link>
      <description>&lt;P&gt;Where is the data from? &amp;nbsp;I mean I can see year=1956 as first four characters, but the rest doesn't make sense and formating as date value is wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:22:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273031#M54362</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-25T14:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Month and day from number of days away from January 1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273032#M54363</link>
      <description>&lt;P&gt;1956229 as a field in which the year is 1956 and 229 is the 229th day of year 1956 that is&amp;nbsp;August 16th which should display as 8/16/1956&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273032#M54363</guid>
      <dc:creator>pr1</dc:creator>
      <dc:date>2016-05-25T14:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Month and day from number of days away from January 1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273033#M54364</link>
      <description>&lt;P&gt;OK, it's easy enough to split this in two.&amp;nbsp; These statements assume that your original variable is numeric.&amp;nbsp; If it is actually character, the statements would change slightly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;year = int(juldateval / 1000);&lt;/P&gt;
&lt;P&gt;days = mod(juldateval, 1000);&lt;/P&gt;
&lt;P&gt;newdate = mdy(1, 1, year) + days - 1;&lt;/P&gt;
&lt;P&gt;format newdate mmddyys10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273033#M54364</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-05-25T14:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Month and day from number of days away from January 1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273036#M54366</link>
      <description>&lt;P&gt;THANKS!!&amp;nbsp; that works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 14:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273036#M54366</guid>
      <dc:creator>pr1</dc:creator>
      <dc:date>2016-05-25T14:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Month and day from number of days away from January 1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273186#M54418</link>
      <description>&lt;P&gt;There already is a funtion to do that .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
Xend=datejul(2001001);
put Xend / Xend date9.; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 May 2016 03:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273186#M54418</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-26T03:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Month and day from number of days away from January 1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273222#M54423</link>
      <description>&lt;P&gt;Thank You.&amp;nbsp; Let me try this.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 10:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-Month-and-day-from-number-of-days-away-from-January-1/m-p/273222#M54423</guid>
      <dc:creator>pr1</dc:creator>
      <dc:date>2016-05-26T10:31:08Z</dc:date>
    </item>
  </channel>
</rss>

