필터 지우기
필터 지우기

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