What should I do to display midnight in datetime?
조회 수: 18 (최근 30일)
이전 댓글 표시
I use a Matlab in the window.
If I enter the datetime like below,
The result does not show time. I want the result like (2019-09-08 00:00:00)
What should I do? :(
>> datetime(2019,9,8,0,0,0)
ans =
datetime
2019-09-08
답변 (1개)
Stephen23
2020년 8월 3일
>> dt = datetime(2019,9,8,0,0,0,'Format','yyyy-MM-dd HH:mm:ss')
dt =
2019-09-08 00:00:00
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!