current date and time

193 ビュー (過去 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 Center および File ExchangeDates and Time についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by