Convert UIDatePicker to Default

1 view (last 30 days)
shnrndll on 20 Sep 2021
Commented: shnrndll on 21 Sep 2021
After picking a date, how can I command the UIDatePicker to display the default Value above? To choose new date(s). Please advise.

Accepted Answer

Geoff Hayes
Geoff Hayes on 21 Sep 2021
shnrndll - try setting to the default value of NaT (from Value) as
myDatePicker.Value = NaT;
where myDatePicker is the uidatepicker object.

More Answers (0)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!