<?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: datetime informat - help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288807#M59611</link>
    <description>&lt;PRE&gt;

data example;
   x="25 July 2016 11:43:20  ";
   z=input(translate(strip(x),':',' '),anydtdtm32.);
   format z datetime20.;
run;
proc print;run;

&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 Aug 2016 03:59:28 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-08-02T03:59:28Z</dc:date>
    <item>
      <title>datetime informat - help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288647#M59547</link>
      <description>&lt;P&gt;Would anyone know the best informat to turn the following character value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;25 July 2016 11:43:20&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;into a numeric datetime:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 16:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288647#M59547</guid>
      <dc:creator>moorsd</dc:creator>
      <dc:date>2016-08-01T16:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: datetime informat - help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288648#M59548</link>
      <description>&lt;P&gt;Are the months always the full text, ie December ?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 16:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288648#M59548</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-01T16:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: datetime informat - help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288649#M59549</link>
      <description>&lt;P&gt;Here's one example that may help you.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
   x="25 July 2016 11:43:20";
   z= dhms(input(cats( scan(x,1), substr(scan(x,2),1,3) , scan(x,3)),date9.),0,0,input(scan(x,4),time8.));
   format z datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Aug 2016 16:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288649#M59549</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-01T16:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: datetime informat - help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288807#M59611</link>
      <description>&lt;PRE&gt;

data example;
   x="25 July 2016 11:43:20  ";
   z=input(translate(strip(x),':',' '),anydtdtm32.);
   format z datetime20.;
run;
proc print;run;

&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 03:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288807#M59611</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-02T03:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: datetime informat - help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288811#M59614</link>
      <description>&lt;PRE&gt;
ANYDTDTM. Powerful.

data example;
   x="25 July 2016 11:43:20  ";
   z=input(x,anydtdtm32.);
   format z datetime20.;
run;
proc print;run;

&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288811#M59614</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-02T04:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: datetime informat - help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288964#M59646</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE&gt;ANYDTDTM. Powerful.

data example;
   x="25 July 2016 11:43:20  ";
   z=input(x,anydtdtm32.);
   format z datetime20.;
run;
proc print;run;

&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yields missing value for z in my install (boss still hasn't updated from 9.2). I tried that first thing so wasn't sure whether it would work on others. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 16:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/288964#M59646</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-02T16:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: datetime informat - help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/289089#M59690</link>
      <description>&lt;PRE&gt;
Ou. Are you still using SAS9.2 . That is almost ten years ago .
I am using UE, it is working for me .

&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2016 03:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/289089#M59690</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-03T03:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: datetime informat - help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/296596#M62176</link>
      <description>Thanks for the help, and I have to apologise for not getting back to you sooner. I've not been in work for a while so didn't get around to accepting your solution.</description>
      <pubDate>Mon, 05 Sep 2016 20:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datetime-informat-help/m-p/296596#M62176</guid>
      <dc:creator>moorsd</dc:creator>
      <dc:date>2016-09-05T20:23:46Z</dc:date>
    </item>
  </channel>
</rss>

