Convert date to datetime

5 vues (au cours des 30 derniers jours)
SuzieChan
SuzieChan le 12 Avr 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';

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by