Adding onto Craig's answer, here is a "date_box()" that you can call to make it do that functionality as well. This also defaults to a date so it doesn't just blank out if you accidentally insert insert a character or something.
date_box = function(//makes a calendar come up on a numeditbox that is a little more robust
//Note, this only works on JMP 11+
{timething = Today()}, {newbox},
newbox = Eval(substitute(NameExpr(number edit box(timething, //Eval(Sub()) because of JMP quirk
10,//just need this because JMP doesn't default a width
<<Set function(function({self},{},
if(ismissing(self<<get),
self<<Set(Eval(DUMMY))//sets the date to the timething argument
)
)),
<<Set Format(Format("m/d/y h:m:s", 23, 0));//makes datetime format for the box (gives calendar)
)), EXPR(DUMMY), timething));
newbox;
);
then you can just :
nw = new window("Date Box",
date_box(), //defaults to now
date_box(Today()-5*60*60), // Set to 5 hours ago
);