how change information Date Picker

if i change data it call this function:
function BackTest_InizioValueChanged(app, event)
value = app.BackTest_Inizio.Value;
value.displayFormat='dd/MM/yyyy';
app.setting.StartingDate=value;
end
but i see mm/dd/yyy but not this : 'dd/MM/yyyy'

5 comentarios

Voss
Voss el 7 de Abr. de 2024
Movida: Voss el 8 de Abr. de 2024
shamal
shamal el 8 de Abr. de 2024
Movida: Voss el 8 de Abr. de 2024
yes but it don't change
I don't understand why it still wants that format even though I formatted it differently
Voss
Voss el 8 de Abr. de 2024
Movida: Voss el 8 de Abr. de 2024
Can you upload your mlapp file?
shamal
shamal el 8 de Abr. de 2024
Movida: Voss el 8 de Abr. de 2024
Try this..problem is similar
Voss
Voss el 8 de Abr. de 2024
Movida: Voss el 8 de Abr. de 2024
I don't know. That's weird.

Iniciar sesión para comentar.

Respuestas (1)

T.Nikhil kumar
T.Nikhil kumar el 11 de Abr. de 2024

0 votos

Hello Luca,
I understand that you want to ensure consistency between the tooltip of the date picker and its ‘DisplayFormat’.
It appears that the ‘DisplayFormat’ is inconsistent with the placeholder text (tooltip) if no date is selected and the date picker is in editing mode.
It seems that the issue may be due to having alpha characters in the ‘DisplayFormat’ of the date picker and changing its value to something that is all numeric resolves this inconsistency. I would suggest you to try setting the display format as 'dd/MM/yyyy' instead of ‘dd-MMM-uuuu’ as shown in the image you shared.
Refer to another answer for a similar question on the MATLAB Answers forum - https://in.mathworks.com/matlabcentral/answers/1456479
Hope this is what you were looking for!

1 comentario

shamal
shamal el 11 de Abr. de 2024
Editada: shamal el 11 de Abr. de 2024
hi, i setting the display format as 'dd/MM/yyyy
but :
in 1 is the original date..
if i click with mouse in 2 i get not correct date (correct is 31/12/2024)

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Report Generator en Centro de ayuda y File Exchange.

Preguntada:

el 7 de Abr. de 2024

Editada:

el 11 de Abr. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by