When using the calendar box to allow users to select a single date, is there a way to set the time to 12:00:00AM of the date selected? I ask because with the code I'm using below, each time I select a given date (e.g., August 1, 2022) I get a slightly different value depending on the time of day when the code was run.
Ultimately, I'm using the calendar box to select a given date and to then select rows in a data table where sdate == Date and which is derived from a formula (Date MDY( :Month, :Day, :Year ).
nw = New Window( "Instrument Linearity Test Date",
<<modal(),
Text Box( "Select Date of Linearity Test" ),
Panel Box( "Date", cal_start = Calendar Box( <<Show Time( 0 ) ), ),
ok_button = Button Box( "OK", sdate = cal_start << get date )
);
Show( sdate );