<?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 SAS Date and time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/592242#M169789</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a variable of text data type with data value looks like 'username1&amp;nbsp;17/04/28 13:34:44'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the text string is the username and followed by the date (YY/MM/DD) and time (24 hour format).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to convert this variable into a datetime field looks like '28APR2017:13:34:44' of data type "datetime20." which I will use later in the program to calculate the time interval.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 17:01:01 GMT</pubDate>
    <dc:creator>zimcom</dc:creator>
    <dc:date>2019-09-27T17:01:01Z</dc:date>
    <item>
      <title>SAS Date and time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/592242#M169789</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a variable of text data type with data value looks like 'username1&amp;nbsp;17/04/28 13:34:44'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the text string is the username and followed by the date (YY/MM/DD) and time (24 hour format).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to convert this variable into a datetime field looks like '28APR2017:13:34:44' of data type "datetime20." which I will use later in the program to calculate the time interval.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/592242#M169789</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2019-09-27T17:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date and time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/592250#M169794</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/219549"&gt;@zimcom&lt;/a&gt;&amp;nbsp; &amp;nbsp;Will this do?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data test;
have='username1 17/04/28 13:34:44';
want=dhms(input(scan(have,2,' '),yymmdd8.),0,0,0) +
  input(scan(have,-1,' '),time10.);
format want datetime20.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/592250#M169794</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-09-27T17:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date and time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/592257#M169795</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-and-time/m-p/592257#M169795</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2019-09-27T17:43:50Z</dc:date>
    </item>
  </channel>
</rss>

