current date and time
194 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Leonardo Wayne
le 21 Juin 2016
Commenté : Shameer Parmar
le 21 Juin 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 commentaires
Réponse acceptée
Shameer Parmar
le 21 Juin 2016
datestr(now, 'dd/mm/yy-HH:MM')
1 commentaire
Shameer Parmar
le 21 Juin 2016
to display this into GUI field,
date = datestr(now, 'dd/mm/yy-HH:MM');
set(handles.edit,'String',date);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!