<?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 How to combine date and time in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598027#M18244</link>
    <description>Hello!&lt;BR /&gt;I've date 20120304 and time 09:30:00&lt;BR /&gt;I need to combine these two dates with is8601dt. format.&lt;BR /&gt;&lt;BR /&gt;I'm using the below code.&lt;BR /&gt;Data new;&lt;BR /&gt;Set old;&lt;BR /&gt;NewDate=put(input(catch('T',date,time),b8601dt.),is8601dt.);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;While I'm running this code I got a error which shows invalid argument to input function&lt;BR /&gt;&lt;BR /&gt;Could you please solve this query..&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;Regards</description>
    <pubDate>Mon, 21 Oct 2019 06:15:41 GMT</pubDate>
    <dc:creator>sasuser123123</dc:creator>
    <dc:date>2019-10-21T06:15:41Z</dc:date>
    <item>
      <title>How to combine date and time</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598027#M18244</link>
      <description>Hello!&lt;BR /&gt;I've date 20120304 and time 09:30:00&lt;BR /&gt;I need to combine these two dates with is8601dt. format.&lt;BR /&gt;&lt;BR /&gt;I'm using the below code.&lt;BR /&gt;Data new;&lt;BR /&gt;Set old;&lt;BR /&gt;NewDate=put(input(catch('T',date,time),b8601dt.),is8601dt.);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;While I'm running this code I got a error which shows invalid argument to input function&lt;BR /&gt;&lt;BR /&gt;Could you please solve this query..&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 21 Oct 2019 06:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598027#M18244</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2019-10-21T06:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine date and time</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598028#M18245</link>
      <description>&lt;P&gt;Are date and time numerical values? I.e. actual date/time values or character values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 06:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598028#M18245</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-21T06:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine date and time</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598030#M18246</link>
      <description>Both date and time variables are in character format</description>
      <pubDate>Mon, 21 Oct 2019 06:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598030#M18246</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2019-10-21T06:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine date and time</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598031#M18247</link>
      <description>I mean character values</description>
      <pubDate>Mon, 21 Oct 2019 06:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598031#M18247</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2019-10-21T06:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine date and time</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598033#M18248</link>
      <description>&lt;P&gt;See if this works for you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    date='20120304';
    time='09:30:00';
    datetime=dhms(input(date, yymmdd8.), 0, 0, input(time, time8.));
    format datetime is8601dt.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Oct 2019 06:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598033#M18248</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-21T06:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine date and time</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598040#M18249</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&lt;BR /&gt;Thank you so much. It's perfectly working.&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your assistance.</description>
      <pubDate>Mon, 21 Oct 2019 06:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598040#M18249</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2019-10-21T06:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine date and time</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598041#M18250</link>
      <description>&lt;P&gt;Anytime &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 06:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-combine-date-and-time/m-p/598041#M18250</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-21T06:40:45Z</dc:date>
    </item>
  </channel>
</rss>

