<?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 User input dates in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/User-input-dates/m-p/53802#M30391</link>
    <description>&lt;P&gt;I have a column of date time in a table.&amp;nbsp; When I run my script I want a dialog box to come up (calendar selection&amp;nbsp;would make selection easier), which asks for a start date and end date.&amp;nbsp; They can be seperate dialog boxes, or they can be the same, either would suffice.&amp;nbsp; I want to store these dates in variables so that I can "select where" to create a subset within or around these dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried numerous approaches, the one I like best:&lt;/P&gt;&lt;P&gt;startDate = new window("Start Date of Data",&amp;lt;&amp;lt;Modal, numbereditbox(today(),20,&amp;lt;&amp;lt;setformat(Format("m/d/y", 12)),Button Box( "OK", StartDateRT &amp;lt;&amp;lt; get ), Button Box( "Cancel" )));&lt;/P&gt;&lt;P&gt;Show(StartDateRT);&lt;BR /&gt;show(StartDate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives me this result in the Log:&lt;/P&gt;&lt;P&gt;StartDateRT = DisplayBox[];&lt;BR /&gt;StartDate = {Button(1)};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the selected date so that I can use it later?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Mar 2018 21:42:20 GMT</pubDate>
    <dc:creator>KST-CPT</dc:creator>
    <dc:date>2018-03-24T21:42:20Z</dc:date>
    <item>
      <title>User input dates</title>
      <link>https://community.jmp.com/t5/Discussions/User-input-dates/m-p/53802#M30391</link>
      <description>&lt;P&gt;I have a column of date time in a table.&amp;nbsp; When I run my script I want a dialog box to come up (calendar selection&amp;nbsp;would make selection easier), which asks for a start date and end date.&amp;nbsp; They can be seperate dialog boxes, or they can be the same, either would suffice.&amp;nbsp; I want to store these dates in variables so that I can "select where" to create a subset within or around these dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried numerous approaches, the one I like best:&lt;/P&gt;&lt;P&gt;startDate = new window("Start Date of Data",&amp;lt;&amp;lt;Modal, numbereditbox(today(),20,&amp;lt;&amp;lt;setformat(Format("m/d/y", 12)),Button Box( "OK", StartDateRT &amp;lt;&amp;lt; get ), Button Box( "Cancel" )));&lt;/P&gt;&lt;P&gt;Show(StartDateRT);&lt;BR /&gt;show(StartDate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives me this result in the Log:&lt;/P&gt;&lt;P&gt;StartDateRT = DisplayBox[];&lt;BR /&gt;StartDate = {Button(1)};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the selected date so that I can use it later?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Mar 2018 21:42:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/User-input-dates/m-p/53802#M30391</guid>
      <dc:creator>KST-CPT</dc:creator>
      <dc:date>2018-03-24T21:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: User input dates</title>
      <link>https://community.jmp.com/t5/Discussions/User-input-dates/m-p/53804#M30392</link>
      <description>&lt;P&gt;Use a Calendar Box().&amp;nbsp; Go to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Calendar Box()&lt;/P&gt;
&lt;P&gt;for details.&lt;/P&gt;
&lt;P&gt;Here is the JSL example from the Help entry&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Calendar Box Example", Calendar Box() );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="calendar.PNG" style="width: 231px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10066i936C7DF2711206D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="calendar.PNG" alt="calendar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Mar 2018 22:00:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/User-input-dates/m-p/53804#M30392</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-24T22:00:50Z</dc:date>
    </item>
  </channel>
</rss>

