Try something like this:
nw = new window("Test Dates", << modal(),
Lineup Box( N Col( 2 ),
text box("Enter start date: "),
start_neb = number edit box(today(), << Set Format( Format( "ddMonyyyy", 10))),
text box("Enter end date: "),
end_neb = number edit box(today(), << Set Format( Format( "ddMonyyyy", 10))),
),
ok_button = button box("OK",
startdate = start_neb << get;
enddate = end_neb << get;
)
);
print(format(startdate, "ddMonyyyy" ), format(enddate, "ddMonyyyy" ));
pmroz_0-1649256418487.png
From the log:
"11Apr2022"
"24Apr2022"