current date and time
95 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Shameer Parmar
2016-6-21
datestr(now, 'dd/mm/yy-HH:MM')
1 个评论
Shameer Parmar
2016-6-21
to display this into GUI field,
date = datestr(now, 'dd/mm/yy-HH:MM');
set(handles.edit,'String',date);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!