Separate date and time
조회 수: 9 (최근 30일)
이전 댓글 표시
I have the datetime in a column as given in an attached example excel sheet. Between date and time there is an alphabet T. Can I get a help to seperate out date and time.
Thanks!
댓글 수: 0
답변 (1개)
Steven Lord
2021년 9월 21일
dt = datetime('now') % Sample data
theTime = timeofday(dt)
theDate = dt - theTime % or
theDate2 = dateshift(dt, 'start', 'day')
참고 항목
카테고리
Help Center 및 File Exchange에서 Calendar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!