<?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: Date Calendar box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476688#M72123</link>
    <description>&lt;P&gt;Didn't realize you were using calendar boxes.&amp;nbsp; Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Test Dates", &amp;lt;&amp;lt; modal(),
	text box("Monitoring &amp;amp; Trending"),
	hlistbox(
		panelbox("From Date",
			cal_start = calendar box(&amp;lt;&amp;lt; Show Time( 0 )),
		),
		panelbox("To Date",
			cal_end = calendar box(&amp;lt;&amp;lt; Show Time( 0 )),
		),
	),
	ok_button = button box("OK",
		startdate = cal_start &amp;lt;&amp;lt; get date;
		enddate   = cal_end &amp;lt;&amp;lt; get date;
	)
);

print(format(startdate, "ddMonyyyy" ), format(enddate, "ddMonyyyy" ));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Apr 2022 14:54:38 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2022-04-06T14:54:38Z</dc:date>
    <item>
      <title>Date Calendar box</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476648#M72111</link>
      <description>&lt;P&gt;I'm trying to make a jmp application that will run trends. I have two calendar boxes with a "From" and "To" date. When I click the "Run Script" button, I want to be able to use dates defined in the calendar boxes to select dates in my trend. How can I get the values from the calendar boxes to use in the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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-inline" image-alt="B1234_0-1649247204643.png" style="width: 513px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41562i8437D9447578E8E6/image-dimensions/513x568?v=v2" width="513" height="568" role="button" title="B1234_0-1649247204643.png" alt="B1234_0-1649247204643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:56:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476648#M72111</guid>
      <dc:creator>B1234</dc:creator>
      <dc:date>2023-06-09T16:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date Calendar box</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476676#M72117</link>
      <description>&lt;P&gt;This is what I have tried but doesnt seem to work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NumberEdit1 &amp;lt;&amp;lt; set Function( Function( {this}, sd = NumberEdit1 &amp;lt;&amp;lt; Get Date() ) );
NumberEdit2 &amp;lt;&amp;lt; set Function( Function( {this}, ed = NumberEdit2 &amp;lt;&amp;lt; Get Date() ) );

Show( sd );
startdate = Format( sd, "ddMonyyyy" );

Show( ed );
enddate = Format( ed, "ddMonyyyy" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:14:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476676#M72117</guid>
      <dc:creator>B1234</dc:creator>
      <dc:date>2022-04-06T14:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date Calendar box</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476687#M72122</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Test Dates", &amp;lt;&amp;lt; modal(),
	Lineup Box( N Col( 2 ),
		text box("Enter start date: "),
		start_neb = number edit box(today(), &amp;lt;&amp;lt; Set Format( Format( "ddMonyyyy", 10))),
		text box("Enter end date: "),
		end_neb   = number edit box(today(), &amp;lt;&amp;lt; Set Format( Format( "ddMonyyyy", 10))),
	),
	ok_button = button box("OK",
		startdate = start_neb &amp;lt;&amp;lt; get;
		enddate   = end_neb &amp;lt;&amp;lt; get;
	)
);

print(format(startdate, "ddMonyyyy" ), format(enddate, "ddMonyyyy" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmroz_0-1649256418487.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41566iC21E1C55C04D68A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pmroz_0-1649256418487.png" alt="pmroz_0-1649256418487.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;From the log:&lt;/P&gt;
&lt;PRE&gt;"11Apr2022"
"24Apr2022"&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:47:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476687#M72122</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2022-04-06T14:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date Calendar box</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476688#M72123</link>
      <description>&lt;P&gt;Didn't realize you were using calendar boxes.&amp;nbsp; Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Test Dates", &amp;lt;&amp;lt; modal(),
	text box("Monitoring &amp;amp; Trending"),
	hlistbox(
		panelbox("From Date",
			cal_start = calendar box(&amp;lt;&amp;lt; Show Time( 0 )),
		),
		panelbox("To Date",
			cal_end = calendar box(&amp;lt;&amp;lt; Show Time( 0 )),
		),
	),
	ok_button = button box("OK",
		startdate = cal_start &amp;lt;&amp;lt; get date;
		enddate   = cal_end &amp;lt;&amp;lt; get date;
	)
);

print(format(startdate, "ddMonyyyy" ), format(enddate, "ddMonyyyy" ));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:54:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476688#M72123</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2022-04-06T14:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date Calendar box</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476709#M72124</link>
      <description>&lt;P&gt;you might like &lt;LI-MESSAGE title="Select Date Range with Calendar Boxes" uid="222980" url="https://community.jmp.com/t5/Uncharted/Select-Date-Range-with-Calendar-Boxes/m-p/222980#U222980" 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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Linked calendar boxes" style="width: 631px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18993i3AF2CF85805CF857/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Linked calendar boxes" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Linked calendar boxes&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:07:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/476709#M72124</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-04-06T15:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date Calendar box</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/477811#M72235</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4550"&gt;@pmroz&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp; this was very helpful! working well now thank you both.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 06:58:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Calendar-box/m-p/477811#M72235</guid>
      <dc:creator>B1234</dc:creator>
      <dc:date>2022-04-11T06:58:54Z</dc:date>
    </item>
  </channel>
</rss>

