<?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: Creating a datetime var out of a string date in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-datetime-var-out-of-a-string-date/m-p/573016#M12415</link>
    <description>&lt;P&gt;Thank you KurtBremser it worked fine!&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 09:13:41 GMT</pubDate>
    <dc:creator>frakje</dc:creator>
    <dc:date>2019-07-12T09:13:41Z</dc:date>
    <item>
      <title>Creating a datetime var out of a string date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-datetime-var-out-of-a-string-date/m-p/573008#M12408</link>
      <description>&lt;P&gt;Hallo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm dealing with a problem I hope you guys can help me with.&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;a date var which is located as a&amp;nbsp;character variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date = '2010-07-12 12:20:51'&lt;/P&gt;&lt;P&gt;I want to convert it into a sas date with time registrated. Probably on the format datetime16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regard Frank.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 08:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-datetime-var-out-of-a-string-date/m-p/573008#M12408</guid>
      <dc:creator>frakje</dc:creator>
      <dc:date>2019-07-12T08:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a datetime var out of a string date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-datetime-var-out-of-a-string-date/m-p/573011#M12410</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;numdate = input(chardate,e8601dt19.);
format numdate e8601dt19.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The e8601dt informat will do the conversion. Personally, I prefer formats with a ymdhms order.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 08:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-datetime-var-out-of-a-string-date/m-p/573011#M12410</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-12T08:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a datetime var out of a string date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-datetime-var-out-of-a-string-date/m-p/573016#M12415</link>
      <description>&lt;P&gt;Thank you KurtBremser it worked fine!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 09:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-datetime-var-out-of-a-string-date/m-p/573016#M12415</guid>
      <dc:creator>frakje</dc:creator>
      <dc:date>2019-07-12T09:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a datetime var out of a string date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-datetime-var-out-of-a-string-date/m-p/573129#M12451</link>
      <description>Please mark the question as answered - Kurt's solution.</description>
      <pubDate>Fri, 12 Jul 2019 15:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-datetime-var-out-of-a-string-date/m-p/573129#M12451</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-12T15:05:37Z</dc:date>
    </item>
  </channel>
</rss>

