<?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: Creating a new date from two variables in SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-new-date-from-two-variables-in-SAS/m-p/649945#M22316</link>
    <description>&lt;P&gt;use the MDY()&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;start_date = mdy(month, 1, year);
duration = intck('month', start_date, event_date);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Look up INTCK() and in particular the fourth parameter.&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2020 16:19:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-05-22T16:19:44Z</dc:date>
    <item>
      <title>Creating a new date from two variables in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-new-date-from-two-variables-in-SAS/m-p/649943#M22315</link>
      <description>&lt;P&gt;Hi, I am working on a Cox Regression Model and am having trouble formatting my date to event. I have two variables showing the month of the event (DOD_M) and the year (DOD_Y). The month is formatted as a numeric variable (1-12), and the year is a numeric four digit variable (1995-2018). I would like to eventually create a variable that shows the time to event from enrollment in the study (5/1/1995) to the event, in months. What is the easiest way to do this? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 16:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-new-date-from-two-variables-in-SAS/m-p/649943#M22315</guid>
      <dc:creator>amng</dc:creator>
      <dc:date>2020-05-22T16:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new date from two variables in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-new-date-from-two-variables-in-SAS/m-p/649945#M22316</link>
      <description>&lt;P&gt;use the MDY()&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;start_date = mdy(month, 1, year);
duration = intck('month', start_date, event_date);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Look up INTCK() and in particular the fourth parameter.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 16:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-new-date-from-two-variables-in-SAS/m-p/649945#M22316</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-22T16:19:44Z</dc:date>
    </item>
  </channel>
</rss>

