<?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: Combining separate date and time columns to make ISO 8601 format (yyyy-mm-ddThh:mm) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Combining-separate-date-and-time-columns-to-make-ISO-8601-format/m-p/68099#M34771</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12389"&gt;@Valley_Gurl&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Luckily, this is easier than it looks.&amp;nbsp; 12:00:00 AM&amp;nbsp;January 1, 1904 is the baseline value for date/time values in JMP.&amp;nbsp; If you have date only values (first column), underlying the presented formatted value is a numeric value that is the number of seconds elapsed&amp;nbsp;the baseline time in 1904 to midnight of the given date value.&amp;nbsp; If you have a time only value (your second column), it is the number of elapsed seconds since midnight (on January 1, 1904 if you convert it to date/time).&amp;nbsp; Therefore, all you need to do is sum them together, and then apply a format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column formula for data/time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="formula.PNG" style="width: 805px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12036iF0871EC10567CEA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="formula.PNG" alt="formula.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applying the format:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="columninfo.PNG" style="width: 540px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12037i5D07259AB622D02B/image-size/large?v=v2&amp;amp;px=999" role="button" title="columninfo.PNG" alt="columninfo.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*Make sure the input format is "Numeric" since the result of the sum will just be a large integer representing the number of seconds from baseline to the desired date/time value.&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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-center" image-alt="Result.PNG" style="width: 736px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12038i54A0CB5995202F57/image-size/large?v=v2&amp;amp;px=999" role="button" title="Result.PNG" alt="Result.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 16:36:28 GMT</pubDate>
    <dc:creator>cwillden</dc:creator>
    <dc:date>2018-08-15T16:36:28Z</dc:date>
    <item>
      <title>Combining separate date and time columns to make ISO 8601 format (yyyy-mm-ddThh:mm)</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-separate-date-and-time-columns-to-make-ISO-8601-format/m-p/68082#M34766</link>
      <description>&lt;P&gt;I am trying to generate a ISO 8601 formatted column, which combines two sepatate date and time columns into a joint date/time form (yyyy-mm-ddThh:mm). Here is an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;DATE (yyyy-mm-dd)&lt;/TD&gt;&lt;TD&gt;TIME (:day:hr:m:s)&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;DATE/TIME&amp;nbsp;&lt;SPAN&gt;(yyyy-mm-ddThh:mm)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2000-07-20&lt;/TD&gt;&lt;TD&gt;:0:09:30:00&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;2000-07-20T09:30&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1993-04-30&lt;/TD&gt;&lt;TD&gt;:0:12:01:00&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;1993-04-30T12:01&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2003-05-05&lt;/TD&gt;&lt;TD&gt;:0:16:28:00&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;2003-05-05T16:28&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to simply change the format for the "TIME" column to&amp;nbsp;&lt;SPAN&gt;yyyy-mm-ddThh:mm but that gave me dates in 1904.&lt;/SPAN&gt;&amp;nbsp;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 15:55:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-separate-date-and-time-columns-to-make-ISO-8601-format/m-p/68082#M34766</guid>
      <dc:creator>Valley_Gurl</dc:creator>
      <dc:date>2018-08-15T15:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Combining separate date and time columns to make ISO 8601 format (yyyy-mm-ddThh:mm)</title>
      <link>https://community.jmp.com/t5/Discussions/Combining-separate-date-and-time-columns-to-make-ISO-8601-format/m-p/68099#M34771</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12389"&gt;@Valley_Gurl&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Luckily, this is easier than it looks.&amp;nbsp; 12:00:00 AM&amp;nbsp;January 1, 1904 is the baseline value for date/time values in JMP.&amp;nbsp; If you have date only values (first column), underlying the presented formatted value is a numeric value that is the number of seconds elapsed&amp;nbsp;the baseline time in 1904 to midnight of the given date value.&amp;nbsp; If you have a time only value (your second column), it is the number of elapsed seconds since midnight (on January 1, 1904 if you convert it to date/time).&amp;nbsp; Therefore, all you need to do is sum them together, and then apply a format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column formula for data/time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="formula.PNG" style="width: 805px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12036iF0871EC10567CEA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="formula.PNG" alt="formula.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applying the format:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="columninfo.PNG" style="width: 540px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12037i5D07259AB622D02B/image-size/large?v=v2&amp;amp;px=999" role="button" title="columninfo.PNG" alt="columninfo.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*Make sure the input format is "Numeric" since the result of the sum will just be a large integer representing the number of seconds from baseline to the desired date/time value.&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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-center" image-alt="Result.PNG" style="width: 736px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12038i54A0CB5995202F57/image-size/large?v=v2&amp;amp;px=999" role="button" title="Result.PNG" alt="Result.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 16:36:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Combining-separate-date-and-time-columns-to-make-ISO-8601-format/m-p/68099#M34771</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-08-15T16:36:28Z</dc:date>
    </item>
  </channel>
</rss>

