I have Day, Month, Year, Hour and Minute in different columns, how to combine in a datetime format (17-Oct-2019 00:00)?
조회 수: 18 (최근 30일)
이전 댓글 표시
Please find the attached files
Thank you
댓글 수: 0
답변 (1개)
Marcel Kreuzberg
2019년 12월 11일
try
Second = zeros(53715,1);
Year = Year+2000;
t = datetime(Year,Month,Day,Hour,Minute,Second,'Format','dd-MMM-yyyy hh:mm');
regards
Marcel
댓글 수: 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!