フィルターのクリア

extract date from date time command in matlab

83 ビュー (過去 30 日間)
Waqas Siddique
Waqas Siddique 2021 年 2 月 20 日
編集済み: Stephen23 2021 年 2 月 20 日
Hi
I am using date time command in MATLAB but want only date and not time. Is there any other command?

回答 (1 件)

Stephen23
Stephen23 2021 年 2 月 20 日
編集済み: Stephen23 2021 年 2 月 20 日
You don't need another command, you just need to change the format property:
For example:
Dt.Format = 'yyyy-MM-dd';
See also the examples:

カテゴリ

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