<?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: Convert Charater AM PM to Datetime format. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Convert-Charater-AM-PM-to-Datetime-format/m-p/653423#M22513</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19264"&gt;@dennis_oz&lt;/a&gt;&amp;nbsp; Would the below suffice?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
 have='28-APR-20 02.56.42.897749 PM';
 want=input(have, datetime30.);
 format want datetime30.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Jun 2020 20:09:00 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2020-06-04T20:09:00Z</dc:date>
    <item>
      <title>Convert Charater AM PM to Datetime format.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-Charater-AM-PM-to-Datetime-format/m-p/616753#M18952</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I have the date time format as '1/11/2017 8:00:41 AM +00:00' and it is in character format. I don't there this '+00:00' came from, but in my all data they all end with '+00:00', so I really don't care.&lt;/P&gt;
&lt;P&gt;can someone help me convert it to Datetime format like '1/11/2017 8:00:41 AM' please?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA Have;
Date_Time='1/11/2017 8:00:41 AM +00:00';
RUN;&lt;/CODE&gt;&lt;/PRE&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 02:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-Charater-AM-PM-to-Datetime-format/m-p/616753#M18952</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2020-01-12T02:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Charater AM PM to Datetime format.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-Charater-AM-PM-to-Datetime-format/m-p/616754#M18953</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
DATA Have;
Date_Time='1/11/2017 8:00:41 AM +00:00';
RUN;

data want;
 set have;
 want_date=input(date_time,mdyampm23.);
 format want_date  DATEAMPM. ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Jan 2020 02:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-Charater-AM-PM-to-Datetime-format/m-p/616754#M18953</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-12T02:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Charater AM PM to Datetime format.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-Charater-AM-PM-to-Datetime-format/m-p/652766#M22462</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;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35631"&gt;@mlogan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi I have a similar question . How to convert&amp;nbsp;28-APR-20 02.56.42.897749 PM&amp;nbsp; &amp;nbsp;( length is 28 char) to DATETIME ? Please can you help&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 06:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-Charater-AM-PM-to-Datetime-format/m-p/652766#M22462</guid>
      <dc:creator>dennis_oz</dc:creator>
      <dc:date>2020-06-03T06:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Charater AM PM to Datetime format.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Convert-Charater-AM-PM-to-Datetime-format/m-p/653423#M22513</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19264"&gt;@dennis_oz&lt;/a&gt;&amp;nbsp; Would the below suffice?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
 have='28-APR-20 02.56.42.897749 PM';
 want=input(have, datetime30.);
 format want datetime30.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2020 20:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Convert-Charater-AM-PM-to-Datetime-format/m-p/653423#M22513</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-06-04T20:09:00Z</dc:date>
    </item>
  </channel>
</rss>

