extract date from date time command in matlab

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일

1 개 추천

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:

카테고리

도움말 센터File Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

질문:

2021년 2월 20일

편집:

2021년 2월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by