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?

 채택된 답변

Shameer Parmar
Shameer Parmar 2016년 6월 21일

2 개 추천

datestr(now, 'dd/mm/yy-HH:MM')

댓글 수: 1

to display this into GUI field,
date = datestr(now, 'dd/mm/yy-HH:MM');
set(handles.edit,'String',date);

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

질문:

2016년 6월 21일

댓글:

2016년 6월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by