Display a dialog for choosing a date.
day = selectday(title, day0) day = selectday(title)
selectday(title,day0) displays a dialog box which lets the user choose a date. First input argument title is the title of the dialog box. The day which is selected by default is day0, given as a vector of three integer numbers [year,month,day]; with a single input argument, the selected day is the current date. The result is either a date as a 1-by-3 row vector, or the empty array if the user taps the Cancel button.
birthday = selectday('Your birthday')
Display a dialog for choosing a time.
time = selecttime(title, time0) time = selecttime(title)
selecttime(title,day0) displays a dialog box which lets the user choose a time. First input argument title is the title of the dialog box. The time which is selected by default is time0, given as a vector of two integer numbers [hour,minute] (where hour between 0 and 23); with a single input argument, the selected time is the current time. The result is either a time as a 1-by-2 row vector, or the empty array if the user taps the Cancel button.
t0 = selecttime('Rocket launch time', [12, 0]);