<?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: bin each row based on date time in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281262#M54465</link>
    <description>Hi,&lt;BR /&gt;If you don't mind, could you select our answers as "Solutions": it will let other users know that this question has been addressed&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
    <pubDate>Wed, 22 Jul 2020 22:11:41 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2020-07-22T22:11:41Z</dc:date>
    <item>
      <title>bin each row based on date time</title>
      <link>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281242#M54459</link>
      <description>&lt;P&gt;I often need to bin each row based on the date time. However, this is kind of troublesome for the data time. let say I am binning based before 7/22/2020 12:00:00pm as Good and after as bad. I can use the IF formula logic to compare the date time to 7/22/2020 12:00:00pm. But to do that I need to convert to the numeric value of&amp;nbsp;3678264000. if there any quicker way to do this? thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:16:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281242#M54459</guid>
      <dc:creator>wencun6</dc:creator>
      <dc:date>2023-06-10T23:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: bin each row based on date time</title>
      <link>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281252#M54461</link>
      <description>&lt;P&gt;what you need to use is the Informat() function&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;if( :date &amp;lt; informat("01/22/2020","m/d/y" ), "Good", "Bad");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 20:12:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281252#M54461</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-22T20:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: bin each row based on date time</title>
      <link>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281254#M54462</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you considered the "Informat" function, such as used below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :Column 1 &amp;lt; Informat( "07/21/2020 12:00 PM", "MM/dd/yyyy hr:min" ),
	1,
	0
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 20:16:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281254#M54462</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2020-07-22T20:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: bin each row based on date time</title>
      <link>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281256#M54464</link>
      <description>&lt;P&gt;many thanks both. The informat works perfectly. :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 20:26:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281256#M54464</guid>
      <dc:creator>wencun6</dc:creator>
      <dc:date>2020-07-22T20:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: bin each row based on date time</title>
      <link>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281262#M54465</link>
      <description>Hi,&lt;BR /&gt;If you don't mind, could you select our answers as "Solutions": it will let other users know that this question has been addressed&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Wed, 22 Jul 2020 22:11:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281262#M54465</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2020-07-22T22:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: bin each row based on date time</title>
      <link>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281263#M54466</link>
      <description>&lt;P&gt;You can use a &lt;A href="https://www.jmp.com/support/help/en/15.1/#page/jmp/date-time-values.shtml" target="_self"&gt;date literal&lt;/A&gt; in JSL or the formula editor. You just need to use the ddMONyyyy format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;date=22Jul2020;

tomorrow=22Jul2020+in days(1);

show(date, tomorrow, format(tomorrow, "mm/dd/yyyy"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in the log you get:&lt;/P&gt;
&lt;PRE&gt;date = 22Jul2020;
tomorrow = 3678307200;
Format(tomorrow, "mm/dd/yyyy") = "07/23/2020";
&lt;/PRE&gt;
&lt;P&gt;Read more:&amp;nbsp;&lt;LI-MESSAGE title="Using dates, times, datetimes and durations in JMP" uid="68689" url="https://community.jmp.com/t5/JMPer-Cable/Using-dates-times-datetimes-and-durations-in-JMP/m-p/68689#U68689" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 22:40:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/bin-each-row-based-on-date-time/m-p/281263#M54466</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-07-22T22:40:07Z</dc:date>
    </item>
  </channel>
</rss>

