<?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 12hour time (am pm) to 24 hours in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-12hour-time-am-pm-to-24-hours/m-p/834394#M330018</link>
    <description>&lt;P&gt;First, you need to let us know if these are numeric variables (according to PROC CONTENTS) or character variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If numeric, probably the format TIMEAMPM. is assigned to this variable. All you need to do is assign the TIME. format to this variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a data step, or PROC, use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format yourvariablename time.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Sep 2022 21:54:37 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-09-20T21:54:37Z</dc:date>
    <item>
      <title>convert 12hour time (am pm) to 24 hours</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-12hour-time-am-pm-to-24-hours/m-p/834374#M330017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to transform my hours that are currently in 12hour clock, with am pm to 24 hours clock&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 19:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-12hour-time-am-pm-to-24-hours/m-p/834374#M330017</guid>
      <dc:creator>floflow</dc:creator>
      <dc:date>2022-09-20T19:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: convert 12hour time (am pm) to 24 hours</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-12hour-time-am-pm-to-24-hours/m-p/834394#M330018</link>
      <description>&lt;P&gt;First, you need to let us know if these are numeric variables (according to PROC CONTENTS) or character variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If numeric, probably the format TIMEAMPM. is assigned to this variable. All you need to do is assign the TIME. format to this variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a data step, or PROC, use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format yourvariablename time.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2022 21:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-12hour-time-am-pm-to-24-hours/m-p/834394#M330018</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-20T21:54:37Z</dc:date>
    </item>
  </channel>
</rss>

