From date and time in different columns to datetime
이전 댓글 표시
Hey, I have an array with date (yyyy-mm-dd) in one columns and time (hh:mm:ss) in another like this:
2017-09-29 21:00:00
2017-09-29 22:00:00
2017-09-29 23:00:00
2017-09-30 00:00:00
2017-09-30 01:00:00
2017-09-30 02:00:00
2017-09-30 03:00:00
How can I make this array into a datetime array?
댓글 수: 1
Andrei Bobrov
2018년 3월 20일
편집: Andrei Bobrov
2018년 3월 20일
Please attach an example of your data (as mat-file) so that we know what type of data you are using.
채택된 답변
추가 답변 (1개)
Andrei Bobrov
2018년 3월 20일
편집: Andrei Bobrov
2018년 3월 20일
datetime('2017-09-29') + hours(21:27)'
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!