<?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 dates in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618864#M19285</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to populate a field called next instalment date and the field I'm have is current instalment date in the format date9. e.g 21Dec2019, I need to populate a field next instalment date using the current instalment date, I needs to display as 21Jan20.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can someone advice where to start?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 13:50:01 GMT</pubDate>
    <dc:creator>Ela_84</dc:creator>
    <dc:date>2020-01-21T13:50:01Z</dc:date>
    <item>
      <title>dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618864#M19285</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to populate a field called next instalment date and the field I'm have is current instalment date in the format date9. e.g 21Dec2019, I need to populate a field next instalment date using the current instalment date, I needs to display as 21Jan20.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can someone advice where to start?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 13:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618864#M19285</guid>
      <dc:creator>Ela_84</dc:creator>
      <dc:date>2020-01-21T13:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618865#M19286</link>
      <description>&lt;P&gt;If you want to get the same day in the next month, use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;nextdate = intnx('month',curdate,1,'s');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jan 2020 13:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618865#M19286</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-21T13:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618866#M19287</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this looks like it might work, I ran the statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nextdate = intnx('month',InstalmentDate,1,'s');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however it populates a Numeric field and not in a date format. I might be using the code incorrect. I apologies, but I'm very new and teaching myself the coding.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618866#M19287</guid>
      <dc:creator>Ela_84</dc:creator>
      <dc:date>2020-01-21T14:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618868#M19288</link>
      <description>&lt;P&gt;If you create a new variable, you need to assign a date display format to make the result of the calculation human-readable. A SAS date value is a count of days from 1960-01-01, so today's date is 21935.&lt;/P&gt;
&lt;P&gt;Add this to the code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format nextdate date9.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and you'll get the "default" SAS date format. Others can be found in the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=n0p2fmevfgj470n17h4k9f27qjag.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&amp;nbsp;(section Date and Time).&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618868#M19288</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-21T14:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618871#M19289</link>
      <description>&lt;P&gt;hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this code and it works perfect!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INTNX('MONTH',InstalmentDate,+1,'SAMEDAY') AS nextdate FORMAT = Date9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for great help, you lead me to this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/dates/m-p/618871#M19289</guid>
      <dc:creator>Ela_84</dc:creator>
      <dc:date>2020-01-21T14:19:12Z</dc:date>
    </item>
  </channel>
</rss>

