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 件のコメント

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 件)

カテゴリ

ヘルプ センター および File 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