<?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 char date yyyymmdd hh:mm:ss into date format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/char-date-yyyymmdd-hh-mm-ss-into-date-format/m-p/514229#M138658</link>
    <description>&lt;P&gt;how to replace the old char column into date format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;txn_inf&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2015/5/7 9:13:59&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2015/2/7 5:43:11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Sun, 18 Nov 2018 13:05:23 GMT</pubDate>
    <dc:creator>Geo-</dc:creator>
    <dc:date>2018-11-18T13:05:23Z</dc:date>
    <item>
      <title>char date yyyymmdd hh:mm:ss into date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/char-date-yyyymmdd-hh-mm-ss-into-date-format/m-p/514229#M138658</link>
      <description>&lt;P&gt;how to replace the old char column into date format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;txn_inf&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2015/5/7 9:13:59&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2015/2/7 5:43:11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 18 Nov 2018 13:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/char-date-yyyymmdd-hh-mm-ss-into-date-format/m-p/514229#M138658</guid>
      <dc:creator>Geo-</dc:creator>
      <dc:date>2018-11-18T13:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: char date yyyymmdd hh:mm:ss into date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/char-date-yyyymmdd-hh-mm-ss-into-date-format/m-p/514248#M138663</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
txn_inf	= "2015/5/7 9:13:59";
output;
txn_inf	=  "2015/2/7 5:43:11";
output;
run;

data want;
set have;
new_date= datepart(input(txn_inf, ANYDTDTM.));
format new_date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Nov 2018 15:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/char-date-yyyymmdd-hh-mm-ss-into-date-format/m-p/514248#M138663</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-11-18T15:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: char date yyyymmdd hh:mm:ss into date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/char-date-yyyymmdd-hh-mm-ss-into-date-format/m-p/514308#M138683</link>
      <description>hi~Would you please change it into yyyymmdd hh:mm:ss date format,but not yyyymmdd</description>
      <pubDate>Sun, 18 Nov 2018 23:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/char-date-yyyymmdd-hh-mm-ss-into-date-format/m-p/514308#M138683</guid>
      <dc:creator>Geo-</dc:creator>
      <dc:date>2018-11-18T23:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: char date yyyymmdd hh:mm:ss into date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/char-date-yyyymmdd-hh-mm-ss-into-date-format/m-p/514318#M138686</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184018"&gt;@Geo-&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;hi~Would you please change it into yyyymmdd hh:mm:ss date format,but not yyyymmdd&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you actually want a DATETIME value and not a DATE value as your subject line says?&lt;/P&gt;
&lt;P&gt;If so then use the ANYDTDTM. informat instead of the ANYDTDTE. informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why would you like to print it using that format? What is wrong with just using the normal DATETIME19. format? Which would look like:&amp;nbsp; &amp;nbsp;17NOV2018:20:42:01&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 01:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/char-date-yyyymmdd-hh-mm-ss-into-date-format/m-p/514318#M138686</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-19T01:42:24Z</dc:date>
    </item>
  </channel>
</rss>

