<?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: How to combine text date field and number time field into one datetime field in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478142#M123261</link>
    <description>&lt;P&gt;one more quetion, how to deal with these data below, combine then into one SAS long date?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;XTDAT&lt;/TD&gt;&lt;TD&gt;XTTIM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jun 7 2015 12:00AM&lt;/TD&gt;&lt;TD&gt;1/1/0001 6:15:00 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sat, 14 Jul 2018 19:30:10 GMT</pubDate>
    <dc:creator>zimcom</dc:creator>
    <dc:date>2018-07-14T19:30:10Z</dc:date>
    <item>
      <title>How to combine text date field and number time field into one datetime field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478136#M123256</link>
      <description>&lt;P&gt;Dear community,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have a read in date and time field as below&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;XNDAT&lt;/TD&gt;&lt;TD&gt;XNTIM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jun 7 2015 12:00AM&lt;/TD&gt;&lt;TD&gt;17:53:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;of which XNDAT is 'Text ' and XNTIM as 'Num'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I combine them into a long SAS datetime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is greatly appreciated and thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;new SAS learner&lt;/P&gt;&lt;P&gt;zimcom&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jul 2018 18:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478136#M123256</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2018-07-14T18:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine text date field and number time field into one datetime field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478138#M123258</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
k='Jun 7 2015 12:00AM';
k1='17:53:00't;
k2=input(k,anydtdte20.);
k3=dhms(k2,0,0,0)+k1;
format  k3 datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Jul 2018 19:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478138#M123258</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-14T19:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine text date field and number time field into one datetime field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478139#M123259</link>
      <description>&lt;P&gt;It works perfect, you are the best!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zimcom&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jul 2018 19:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478139#M123259</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2018-07-14T19:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine text date field and number time field into one datetime field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478142#M123261</link>
      <description>&lt;P&gt;one more quetion, how to deal with these data below, combine then into one SAS long date?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;XTDAT&lt;/TD&gt;&lt;TD&gt;XTTIM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jun 7 2015 12:00AM&lt;/TD&gt;&lt;TD&gt;1/1/0001 6:15:00 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jul 2018 19:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478142#M123261</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2018-07-14T19:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine text date field and number time field into one datetime field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478143#M123262</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
k='Jun 7 2015 12:00AM';
k1='1/1/0001 6:15:00 PM';
k2=input(k,anydtdte20.);
k3=input(k1,anydtdtm21.);
k4=dhms(k2,0,0,0)+timepart(k3);
format k2 date9. k3 k4 datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Jul 2018 19:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478143#M123262</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-14T19:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine text date field and number time field into one datetime field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478144#M123263</link>
      <description>&lt;P&gt;slight correction to the above:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
k='Jun 7 2015 12:00AM';
k1='1/1/0001 6:15:00 PM';
k2=input(k,anydtdtm21.);
k3=input(k1,anydtdtm21.);
k4=k2+timepart(k3);
format k2 date9. k3 k4 datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Jul 2018 19:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478144#M123263</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-14T19:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine text date field and number time field into one datetime field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478145#M123264</link>
      <description>&lt;P&gt;you are absolutely awesome and helpful!!&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jul 2018 19:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-combine-text-date-field-and-number-time-field-into-one/m-p/478145#M123264</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2018-07-14T19:44:49Z</dc:date>
    </item>
  </channel>
</rss>

