<?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 Converting character  date to numeric date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-character-date-to-numeric-date/m-p/272766#M54284</link>
    <description>&lt;P&gt;I need to compare 2 date :&lt;/P&gt;
&lt;P&gt;One of them is in character value 20$ and looks "2016-04-01 14:30:29"&lt;/P&gt;
&lt;P&gt;Other one is numeric datettime20. and looks "05AUG2002:09:15:55"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i will compare them, how can i convert it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 15:28:52 GMT</pubDate>
    <dc:creator>lerdem</dc:creator>
    <dc:date>2016-05-24T15:28:52Z</dc:date>
    <item>
      <title>Converting character  date to numeric date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-character-date-to-numeric-date/m-p/272766#M54284</link>
      <description>&lt;P&gt;I need to compare 2 date :&lt;/P&gt;
&lt;P&gt;One of them is in character value 20$ and looks "2016-04-01 14:30:29"&lt;/P&gt;
&lt;P&gt;Other one is numeric datettime20. and looks "05AUG2002:09:15:55"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i will compare them, how can i convert it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 15:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-character-date-to-numeric-date/m-p/272766#M54284</guid>
      <dc:creator>lerdem</dc:creator>
      <dc:date>2016-05-24T15:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character  date to numeric date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-character-date-to-numeric-date/m-p/272773#M54288</link>
      <description>&lt;P&gt;See if this approach works for you:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data junk;
   x="2016-04-01 14:30:29";
   y= dhms(input(scan(x,1,' '),yymmdd10.), 0,0,input(scan(x,2,' '),time.));
   format y datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Compare a variable make like Y to your other value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 15:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-character-date-to-numeric-date/m-p/272773#M54288</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-24T15:54:14Z</dc:date>
    </item>
  </channel>
</rss>

