How Datepicker limits can be changed in App Designer?

조회 수: 5 (최근 30일)
Rainier Cordero
Rainier Cordero 2022년 1월 8일
댓글: Rainier Cordero 2022년 1월 12일
I am trying to change the limits of the Datepicker in the App Designer - "Inspector window" - from 1984 to 2022, but when I run the app the Datepicker keep the same range 2002 to 2042. Is it possible to change the Datepicker limits? How?

채택된 답변

Pratyush Roy
Pratyush Roy 2022년 1월 11일
Hi Rainier,
The DatePicker Limits are applied to the app when 'Limits' option under the Inspector Window are changed. All the dates beyond these limits automatically get disabled once the Limits are set. The range appears to be between 2002 and 2042 since when the app is run, the default datetime value is the current date. Since the app is running in the year 2022, MATLAB shows a list of years lying within the range of +/- 20 years. However, once the date gets changed to say 2002, the range will shift to 1982-2022. The dates which are beyond the limts set earlier will automatically get disabled and cannot be chosen.
Hope this helps!
  댓글 수: 1
Rainier Cordero
Rainier Cordero 2022년 1월 12일
Thanks Roy,..
You made my day, now I can delete the UI code used to create a DataPicker manually

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by