how to separate date and time into 6 tables 01/01/2014 0:10:00? (year,mont​h,day,hour​s,minutes and second)

조회 수: 1 (최근 30일)
how to separate date and time into 6 tables 01/01/2014 0:10:00? (year,month,day,hours,minutes and second)
  댓글 수: 1
Peter Perkins
Peter Perkins 2019년 5월 3일
I'm gonna suggest that if 01/01/2014 0:10:00 represents a datetime, that you DON'T do that. You will likely be much happier with datetimes than six columns of numbers.

댓글을 달려면 로그인하십시오.

채택된 답변

Steven Lord
Steven Lord 2019년 4월 12일
Use the datevec function.
  댓글 수: 2
Steven Lord
Steven Lord 2019년 4월 13일
I have no idea since I don't have your data nor have you stated what "its[sic] not related' means.
Show a small sample of data for which it gives a different answer than you expected and the exact datevec call you're executing. With that information we may be able to determine why it's not doing what you expect and how to modify the call.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by