current date and time

조회 수: 150 (최근 30일)
Leonardo Wayne
Leonardo Wayne 2016년 6월 21일
댓글: Shameer Parmar 2016년 6월 21일
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일
datestr(now, 'dd/mm/yy-HH:MM')
  댓글 수: 1
Shameer Parmar
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 CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by