<?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: Turning date/time data into days for individual runs in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908365#M106673</link>
    <description>&lt;P&gt;Hey thanks for the fast reply!! So trying to get to days for each run, but runs done in different years, so below is an example- does this make sense?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BioMTT_0-1760722490690.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85263i79F4F2AEE1650DD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BioMTT_0-1760722490690.png" alt="BioMTT_0-1760722490690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Oct 2025 17:35:16 GMT</pubDate>
    <dc:creator>BioMTT</dc:creator>
    <dc:date>2025-10-17T17:35:16Z</dc:date>
    <item>
      <title>Turning date/time data into days for individual runs</title>
      <link>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908352#M106671</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to use a formula (or JSL if I need to) to get days for manufacturing runs. I think I need two If/ then statements to get the days to go from 0-12, given the run number/ batch ID and the date/time stamp right? I have tried a few formulas, and searched this forum (and google); however, I have not been able to get the correct output. Unfortunately my programing days are so long ago I can only write the most basic lines. I have JMP 18 and a few weeks to get this, so any ideas would be great! Also I attached a small sample of the date/time format I am attempting to put into days (so I can compare run data from different years, with days on the X axis alone).............Thanks MTT&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 17:20:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908352#M106671</guid>
      <dc:creator>BioMTT</dc:creator>
      <dc:date>2025-10-17T17:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Turning date/time data into days for individual runs</title>
      <link>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908363#M106672</link>
      <description>&lt;P&gt;I'm not exactly sure what you are trying to do. What "days" are you looking for? Can you provide some examples / expected result in your example dataset?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 17:28:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908363#M106672</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-10-17T17:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Turning date/time data into days for individual runs</title>
      <link>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908365#M106673</link>
      <description>&lt;P&gt;Hey thanks for the fast reply!! So trying to get to days for each run, but runs done in different years, so below is an example- does this make sense?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BioMTT_0-1760722490690.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85263i79F4F2AEE1650DD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BioMTT_0-1760722490690.png" alt="BioMTT_0-1760722490690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 17:35:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908365#M106673</guid>
      <dc:creator>BioMTT</dc:creator>
      <dc:date>2025-10-17T17:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Turning date/time data into days for individual runs</title>
      <link>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908373#M106674</link>
      <description>&lt;P&gt;How should the days be calculated? First date of a Run is 0 and then add days after that? If that is the case, create a date column&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1760725845249.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85266iF7352BE8C06A556C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1760725845249.png" alt="jthi_0-1760725845249.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then use&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(:Date - Col Min(:Date, :Run)) / In Days(1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in separate formula&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1760725930256.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85267i30C651C42AC783EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1760725930256.png" alt="jthi_1-1760725930256.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 18:32:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908373#M106674</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-10-17T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Turning date/time data into days for individual runs</title>
      <link>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908375#M106675</link>
      <description>&lt;P&gt;Ok that looks close- so I will try that now- and will that reset to 0 days for each run? Would I have to use another if/then to reset to day 0 for each batch? Again thanks for the quick response(s)!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 18:44:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908375#M106675</guid>
      <dc:creator>BioMTT</dc:creator>
      <dc:date>2025-10-17T18:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Turning date/time data into days for individual runs</title>
      <link>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908376#M106676</link>
      <description>&lt;P&gt;You would do all those "reset" adjustments to the Col Min() function. If you want to reset it on Run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(:Date - Col Min(:Date, :Run)) / In Days(1)&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Batch + Run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(:Date - Col Min(:Date, :Run, :Batch)) / In Days(1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;On smallest data&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(:Date - Col Min(:Date)) / In Days(1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and so on (&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/statistical-functions-2.shtml?os=win&amp;amp;source=application#ww2752603" target="_self"&gt;Col Min(name, &amp;lt;By var, ...&amp;gt;)&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 18:50:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908376#M106676</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-10-17T18:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Turning date/time data into days for individual runs</title>
      <link>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908380#M106677</link>
      <description>&lt;P&gt;Ok making progress and thanks for the tips; however, I need to figure out a way to not lose the resolution the time stamp gives us, because when we use day on the x axis, we need that to be spread out over the course of the entire day. Man not as simple as I was hoping for, but again I think we can get there-&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 19:17:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908380#M106677</guid>
      <dc:creator>BioMTT</dc:creator>
      <dc:date>2025-10-17T19:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Turning date/time data into days for individual runs</title>
      <link>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908381#M106678</link>
      <description>&lt;P&gt;Not sure how you wish to do it, but could you just add time of day to the days? You can create Time Of Day column using right click quick formula on your Date/Time column, then add that to Day column BUT remember to divide the time of day by In Hours(24) (or 60*60*&lt;BR /&gt;24) to turn it into "days".&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 19:30:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Turning-date-time-data-into-days-for-individual-runs/m-p/908381#M106678</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-10-17T19:30:19Z</dc:date>
    </item>
  </channel>
</rss>

