convert dd/mm/yyyy ro serial
조회 수: 1 (최근 30일)
이전 댓글 표시
I got some data in excel with date in the formate of dd/mm/yyyy
d = xlsread ('excel.xlsx','D9:D7808')
then I try to do a datenum, but it doesn't work becuase the data is in dd/mm/yyyy
so How could I convert dd/mm/yyyy to yyyy-mm-dd or convert date into serial in some other ways
Thanks
댓글 수: 2
Image Analyst
2021년 1월 18일
Here's another chance to read the posting guidelines you skipped over when posting:
After you remember to upload your workbook, we'll be able to help more.
답변 (1개)
Walter Roberson
2021년 1월 18일
d = readmatrix('excel.xlsx', 'D9:D7808');
d.Format = 'yyyy-MM-dd';
And if you need to,
cellstr(d)
댓글 수: 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!