Convert date to datetime

조회 수: 25 (최근 30일)
SuzieChan
SuzieChan 2020년 4월 12일
답변: David Hill 2020년 4월 12일
Hi
Is it possible to convert 01/01/1990 to datetime format?
What is the code to do this?
Thank you.
Date = datetime(table{:,1},'ConvertFrom','datenum');
Time.Format = 'dd MMM yyyy , HH:mm:ss';

채택된 답변

David Hill
David Hill 2020년 4월 12일
t = datetime(DateStrings,'InputFormat','dd/MM/yyyy');

추가 답변 (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