current date and time
158 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Leonardo Wayne
am 21 Jun. 2016
Kommentiert: Shameer Parmar
am 21 Jun. 2016
I would like to view the time of the day and date in the following format example (21/06/16-11:32) in a GUI. What is the command?
0 Kommentare
Akzeptierte Antwort
Shameer Parmar
am 21 Jun. 2016
datestr(now, 'dd/mm/yy-HH:MM')
1 Kommentar
Shameer Parmar
am 21 Jun. 2016
to display this into GUI field,
date = datestr(now, 'dd/mm/yy-HH:MM');
set(handles.edit,'String',date);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!