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개)
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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!