<?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: Check if a date is within a specified date range in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Check-if-a-date-is-within-a-specified-date-range/m-p/66613#M34462</link>
    <description>&lt;P&gt;JMP's &amp;lt; operator can compare multiple values strung together:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;date = 6aug2018;
if ( 1jan2018 &amp;lt; date &amp;lt; 1jan2019, "good", "bad");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;"good"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data has missing values, you'll need to test for them. &lt;A href="https://community.jmp.com/t5/Uncharted/If-Secrets/ba-p/39558" target="_self"&gt;If statement blog&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;update:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/JSL-Cookbook/New-Year-Countdown/ta-p/49079" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;is an example, look for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;target &amp;gt; now &amp;gt; target - In Hours( 100 )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;about half way down. change the target to&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;target = today()+100;&lt;/EM&gt;&lt;/STRONG&gt; to see the effect.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Aug 2018 13:52:37 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2018-08-07T13:52:37Z</dc:date>
    <item>
      <title>Check if a date is within a specified date range</title>
      <link>https://community.jmp.com/t5/Discussions/Check-if-a-date-is-within-a-specified-date-range/m-p/66589#M34460</link>
      <description>&lt;P&gt;Is there a way in JSL to check if a given date and time is within a specified date range?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 13:04:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Check-if-a-date-is-within-a-specified-date-range/m-p/66589#M34460</guid>
      <dc:creator>twillkickers</dc:creator>
      <dc:date>2018-08-06T13:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a date is within a specified date range</title>
      <link>https://community.jmp.com/t5/Discussions/Check-if-a-date-is-within-a-specified-date-range/m-p/66613#M34462</link>
      <description>&lt;P&gt;JMP's &amp;lt; operator can compare multiple values strung together:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;date = 6aug2018;
if ( 1jan2018 &amp;lt; date &amp;lt; 1jan2019, "good", "bad");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;"good"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data has missing values, you'll need to test for them. &lt;A href="https://community.jmp.com/t5/Uncharted/If-Secrets/ba-p/39558" target="_self"&gt;If statement blog&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;update:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/JSL-Cookbook/New-Year-Countdown/ta-p/49079" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;is an example, look for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;target &amp;gt; now &amp;gt; target - In Hours( 100 )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;about half way down. change the target to&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;target = today()+100;&lt;/EM&gt;&lt;/STRONG&gt; to see the effect.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:52:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Check-if-a-date-is-within-a-specified-date-range/m-p/66613#M34462</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-08-07T13:52:37Z</dc:date>
    </item>
  </channel>
</rss>

