Convert date to datetime

5 views (last 30 days)
SuzieChan
SuzieChan on 12 Apr 2020
Answered: David Hill on 12 Apr 2020
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';

Accepted Answer

David Hill
David Hill on 12 Apr 2020
t = datetime(DateStrings,'InputFormat','dd/MM/yyyy');

More Answers (0)

Categories

Find more on Dates and Time in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!