<?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: Combine Date Column and Time Column to &amp;quot;DateTime&amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Combine-Date-Column-and-Time-Column-to-quot-DateTime-quot/m-p/724480#M90697</link>
    <description>&lt;P&gt;You should be able to just add the 2 values together&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:date + :time;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Feb 2024 05:42:46 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-02-16T05:42:46Z</dc:date>
    <item>
      <title>Combine Date Column and Time Column to "DateTime"</title>
      <link>https://community.jmp.com/t5/Discussions/Combine-Date-Column-and-Time-Column-to-quot-DateTime-quot/m-p/724475#M90693</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imported data from the .xls file. There is a "Date" column and "Time" column. I have to create a new column with Date Time Combine.&lt;/P&gt;&lt;P&gt;I used below formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date MDY( Month( :Date ), Day( :Date ), Year( :Date ) ) + (Hour( :Time ) * 3600 + Minute( :Time ) * 60 + Second( :Time ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some rows the output is off by roughly 1 minute but some rows are correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yanee_0-1708059795942.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61160i0E5898A7A286BE06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yanee_0-1708059795942.png" alt="yanee_0-1708059795942.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How Can I fixed this?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 05:04:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combine-Date-Column-and-Time-Column-to-quot-DateTime-quot/m-p/724475#M90693</guid>
      <dc:creator>yanee</dc:creator>
      <dc:date>2024-02-16T05:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Date Column and Time Column to "DateTime"</title>
      <link>https://community.jmp.com/t5/Discussions/Combine-Date-Column-and-Time-Column-to-quot-DateTime-quot/m-p/724478#M90695</link>
      <description>&lt;P&gt;If your date and time columns are correctly formatted (other has just date and other just time) you should just be able to add them together without any other calculations.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 05:38:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combine-Date-Column-and-Time-Column-to-quot-DateTime-quot/m-p/724478#M90695</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-16T05:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Date Column and Time Column to "DateTime"</title>
      <link>https://community.jmp.com/t5/Discussions/Combine-Date-Column-and-Time-Column-to-quot-DateTime-quot/m-p/724479#M90696</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It seems that there is an easier formula. You can simply define the DateTime column as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Date + :Time&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, set the format to "m/d/y h:m:s".&lt;/P&gt;
&lt;P&gt;This may not solve your problem since the data import from Excel may have odd behaviors, but I would give it a try.&lt;/P&gt;
&lt;P&gt;If the problem persists, I would check that the data you imported is valid by converting your Time column to Numeric - Best format and check that the same times are coded by the same number of seconds.&lt;/P&gt;
&lt;P&gt;Let us know if it works.&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 05:41:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combine-Date-Column-and-Time-Column-to-quot-DateTime-quot/m-p/724479#M90696</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2024-02-16T05:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Date Column and Time Column to "DateTime"</title>
      <link>https://community.jmp.com/t5/Discussions/Combine-Date-Column-and-Time-Column-to-quot-DateTime-quot/m-p/724480#M90697</link>
      <description>&lt;P&gt;You should be able to just add the 2 values together&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:date + :time;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Feb 2024 05:42:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combine-Date-Column-and-Time-Column-to-quot-DateTime-quot/m-p/724480#M90697</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-02-16T05:42:46Z</dc:date>
    </item>
  </channel>
</rss>

